Update patches to latest 1.21.4 #1

Merged
Chaoscaot merged 242 commits from update/1.21.4 into main 2025-04-23 22:27:11 +02:00
Showing only changes of commit 400717174e - Show all commits

View File

@@ -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));