Check count sanitization

This commit is contained in:
Owen1212055 2024-12-26 17:09:10 -05:00
parent 1447b09201
commit cfb2c8f1f1
No known key found for this signature in database
GPG key ID: 2133292072886A30

View file

@ -185,6 +185,10 @@ final class ItemComponentSanitizer {
// </editor-fold>
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;