Some more compile issues

This commit is contained in:
Bjarne Koll
2024-10-25 13:34:01 +02:00
parent 4c984f6e46
commit cc0308bf1d
13 changed files with 29 additions and 35 deletions

View File

@@ -678,7 +678,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
if (nbt.contains("LootTable", 8)) {
this.setContainerLootTable(ResourceKey.create(Registries.LOOT_TABLE, ResourceLocation.parse(nbt.getString("LootTable"))));
+ // Paper start - LootTable API
+ if (this.getLootTable() != null) {
+ if (this.getContainerLootTable() != null) {
+ this.lootableData().loadNbt(nbt);
+ }
+ // Paper end - LootTable API