1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-06 15:41:50 +00:00

Changes as I was randomly staring at the code

This commit is contained in:
Camotoy
2022-10-17 23:36:46 -04:00
parent 657968f872
commit 0e07991edf
10 changed files with 23 additions and 24 deletions

View File

@@ -72,7 +72,7 @@ public class CustomItemsTest {
tagToCustomItemWithDamage = new Object2IntOpenHashMap<>();
CompoundTag tag = new CompoundTag("");
tag.put(new IntTag("CustomModelData", 6));
addCustomModelData(6, tag);
// Test item with no damage should be treated as unbreakable
tagToCustomItemWithDamage.put(tag, optionsToId.getInt(a));
@@ -121,7 +121,7 @@ public class CustomItemsTest {
tagToCustomItemWithNoDamage = new Object2IntOpenHashMap<>();
tag = new CompoundTag("");
tag.put(new IntTag("CustomModelData", 2));
addCustomModelData(2, tag);
// Damage predicates existing mean an item will never match if the item mapping has no max damage
tagToCustomItemWithNoDamage.put(tag, -1);