diff --git a/patches/server/Missing-Entity-API.patch b/patches/server/Missing-Entity-API.patch index b188c97f81..d356a4c0b4 100644 --- a/patches/server/Missing-Entity-API.patch +++ b/patches/server/Missing-Entity-API.patch @@ -249,6 +249,19 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 public Llama(EntityType type, Level world) { super(type, world); ++ this.maxDomestication = 30; // Paper - Missing entity API; configure max temper instead of a hardcoded value + } + + public boolean isTraderLlama() { +@@ -0,0 +0,0 @@ public class Llama extends AbstractChestedHorse implements VariantHolder ResourceKey.create(Registries.LOOT_TABLE, rl))); // Paper - Validate ResourceLocation); ++ this.setLootTable(net.minecraft.Optionull.map(ResourceLocation.tryParse(nbt.getString("LootTable")), rl -> ResourceKey.create(Registries.LOOT_TABLE, rl))); // Paper - Validate ResourceLocation if (this.lootableData() != null && this.getLootTable() != null) this.lootableData().loadNbt(nbt); // Paper - LootTable API if (nbt.contains("LootTableSeed", 4)) { this.setLootTableSeed(nbt.getLong("LootTableSeed"));