mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 20:52:12 -07:00
Correct obfuscation of oversized items (#11944)
This commit is contained in:
@@ -94,7 +94,7 @@ public final class OversizedItemComponentSanitizer {
|
|||||||
@SuppressWarnings("resource")
|
@SuppressWarnings("resource")
|
||||||
@Override
|
@Override
|
||||||
public void encode(final @NonNull B buf, final @NonNull A value) {
|
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);
|
this.delegate.encode(buf, value);
|
||||||
} else {
|
} else {
|
||||||
this.delegate.encode(buf, this.sanitizer.apply(value));
|
this.delegate.encode(buf, this.sanitizer.apply(value));
|
||||||
|
Reference in New Issue
Block a user