Skip to content

Commit

Permalink
Check count sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen1212055 committed Dec 26, 2024
1 parent 1447b09 commit cfb2c8f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ private static BundleContents sanitizeBundleContents(final BundleContents conten
// </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;
Expand Down

0 comments on commit cfb2c8f

Please sign in to comment.