13
0

Merge pull request 'Buckets in inventories' (#139) from BucketsInInventorys into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #139
Reviewed-by: Chaoscaot <chaoscaot@zohomail.eu>
Dieser Commit ist enthalten in:
Chaoscaot 2023-01-22 23:09:10 +01:00
Commit 2809593238

Datei anzeigen

@ -140,9 +140,10 @@ public class AutoChecker15 implements AutoChecker.IAutoChecker {
if(material == Material.DISPENSER && (itemType.equals(Material.FIRE_CHARGE) || itemType.equals(Material.ARROW))) {
counter += item.getByte("Count");
} else if(!FLOWERS.contains(itemType) && !((material == Material.CHEST || material == Material.BARREL) && itemType.equals(Material.TNT))) {
}else if (!FLOWERS.contains(itemType) && !((material == Material.CHEST || material == Material.BARREL) && itemType.equals(Material.TNT))
&& (material == Material.DISPENSER && !itemType.equals(Material.BUCKET))) {
result.getForbiddenItems().computeIfAbsent(pos, blockVector3 -> new HashSet<>()).add(itemType);
}else if(item.containsKey("tag")) {
} else if (item.containsKey("tag")) {
result.getForbiddenNbt().computeIfAbsent(pos, blockVector3 -> new HashSet<>()).add(itemType);
}
}