mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
Correct obfuscation of oversized items (#11944)
This commit is contained in:
@@ -94,7 +94,7 @@ public final class OversizedItemComponentSanitizer {
|
||||
@SuppressWarnings("resource")
|
||||
@Override
|
||||
public void encode(final @NonNull B buf, final @NonNull A value) {
|
||||
if (ItemObfuscationSession.currentSession().obfuscationLevel().obfuscateOversized()) {
|
||||
if (!ItemObfuscationSession.currentSession().obfuscationLevel().obfuscateOversized()) {
|
||||
this.delegate.encode(buf, value);
|
||||
} else {
|
||||
this.delegate.encode(buf, this.sanitizer.apply(value));
|
||||
|
Reference in New Issue
Block a user