mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-14 13:43:55 +01:00
Check count sanitization
This commit is contained in:
parent
1447b09201
commit
cfb2c8f1f1
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue