@@ -56,21 +56,23 @@ private ArrayList<ItemStack> getPredefinedLootCrates() {
56
56
57
57
for (Item lootCrateItem : allLootCrates ) {
58
58
for (Identifier lootTable : allLootTables ) {
59
- for (Long replenishTimeTicks : replenishTimeTicksValues ) {
60
- for (boolean locked : booleans ) {
61
- for (boolean trapped : booleans ) {
62
- for (boolean doNotConsumeKeyOnUnlock : booleans ) {
63
- for (boolean oncePerPlayer : booleans ) {
64
- if (oncePerPlayer && replenishTimeTicks < 0 ) {
65
- // oncePerPlayer really is only useful when replenish time is positive
66
- } else {
67
- if (doNotConsumeKeyOnUnlock && !locked ) {
68
- // no use in that tag when there is no lock, is there?
59
+ if (!lootTable .getPath ().contains ("entities" )) { // to reduce the lists size a bit
60
+ for (Long replenishTimeTicks : replenishTimeTicksValues ) {
61
+ for (boolean locked : booleans ) {
62
+ for (boolean trapped : booleans ) {
63
+ for (boolean doNotConsumeKeyOnUnlock : booleans ) {
64
+ for (boolean oncePerPlayer : booleans ) {
65
+ if (oncePerPlayer && replenishTimeTicks < 0 ) {
66
+ // oncePerPlayer really is only useful when replenish time is positive
69
67
} else {
70
- NbtCompound compound = LootCrateItem .getLootCrateItemCompoundTag (lootTable , locked , doNotConsumeKeyOnUnlock , replenishTimeTicks , 0 , oncePerPlayer , trapped );
71
- ItemStack itemStack = new ItemStack (lootCrateItem );
72
- itemStack .setNbt (compound );
73
- stacks .add (itemStack );
68
+ if (doNotConsumeKeyOnUnlock && !locked ) {
69
+ // no use in that tag when there is no lock, is there?
70
+ } else {
71
+ NbtCompound compound = LootCrateItem .getLootCrateItemCompoundTag (lootTable , locked , doNotConsumeKeyOnUnlock , replenishTimeTicks , 0 , oncePerPlayer , trapped );
72
+ ItemStack itemStack = new ItemStack (lootCrateItem );
73
+ itemStack .setNbt (compound );
74
+ stacks .add (itemStack );
75
+ }
74
76
}
75
77
}
76
78
}
0 commit comments