From cfb2c8f1f1835a388f9531825deb51d4cf7978f9 Mon Sep 17 00:00:00 2001 From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> Date: Thu, 26 Dec 2024 17:09:10 -0500 Subject: [PATCH] Check count sanitization --- .../java/io/papermc/paper/util/ItemComponentSanitizer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-server/src/main/java/io/papermc/paper/util/ItemComponentSanitizer.java b/paper-server/src/main/java/io/papermc/paper/util/ItemComponentSanitizer.java index f71c2b9a8592..e20b6dedbf83 100644 --- a/paper-server/src/main/java/io/papermc/paper/util/ItemComponentSanitizer.java +++ b/paper-server/src/main/java/io/papermc/paper/util/ItemComponentSanitizer.java @@ -185,6 +185,10 @@ private static BundleContents sanitizeBundleContents(final BundleContents conten // public static int sanitizeCount(ItemStack itemStack, int count) { + if (DataSanitizationUtil.DATA_SANITIZER.get().isNotSanitizing()) { + return count; + } + GlobalConfiguration.Anticheat.Obfuscation.Items items = GlobalConfiguration.get().anticheat.obfuscation.items; if (items.enableItemObfuscation && DataSanitizationUtil.getAssetObfuscation(itemStack).sanitizeCount()) { return 1;