Remove Core.getVersion calls

This commit is contained in:
2026-05-16 14:02:57 +02:00
parent ab3970981d
commit ce1f947f4b
45 changed files with 123 additions and 378 deletions
@@ -127,7 +127,7 @@ public class AutoChecker {
else if (!itemsInInv.getOrDefault(itemType, EnumSet.noneOf(Material.class)).contains(material)) {
result.getForbiddenItems().computeIfAbsent(pos, blockVector3 -> new HashSet<>()).add(itemType);
} else if (material == Material.DISPENSER && (itemType == Material.ARROW || itemType == Material.FIRE_CHARGE)) {
counter += Core.getVersion() >= 21 ? item.getInt("count") : item.getByte("Count");
counter += item.getInt("count");
}
if (item.containsKey("tag")) {
result.getForbiddenNbt().computeIfAbsent(pos, blockVector3 -> new HashSet<>()).add(itemType);