From 2ce563b6d061c28aefe9076a7b599e2bdedf4c99 Mon Sep 17 00:00:00 2001 From: William Blake Galbreath Date: Thu, 2 Jul 2020 15:34:26 -0500 Subject: [PATCH] Fix #3701 - Loottables erasing on viewing --- ...LootTable-API-Replenishable-Lootables-Feature.patch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Spigot-Server-Patches/LootTable-API-Replenishable-Lootables-Feature.patch b/Spigot-Server-Patches/LootTable-API-Replenishable-Lootables-Feature.patch index 7c09d7729b..3d3608370a 100644 --- a/Spigot-Server-Patches/LootTable-API-Replenishable-Lootables-Feature.patch +++ b/Spigot-Server-Patches/LootTable-API-Replenishable-Lootables-Feature.patch @@ -586,10 +586,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 LootTable loottable = this.world.getMinecraftServer().getLootTableRegistry().getLootTable(this.lootTable); if (entityhuman instanceof EntityPlayer) { -@@ -0,0 +0,0 @@ public abstract class EntityMinecartContainer extends EntityMinecartAbstract imp + CriterionTriggers.N.a((EntityPlayer) entityhuman, this.lootTable); } - this.lootTable = null; +- this.lootTable = null; ++ //this.lootTable = null; // Paper + this.lootableData.processRefill(entityhuman); // Paper LootTableInfo.Builder loottableinfo_builder = (new LootTableInfo.Builder((WorldServer) this.world)).set(LootContextParameters.POSITION, this.getChunkCoordinates()).a(this.lootTableSeed); @@ -645,10 +646,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 LootTable loottable = this.world.getMinecraftServer().getLootTableRegistry().getLootTable(this.lootTable); if (entityhuman instanceof EntityPlayer) { -@@ -0,0 +0,0 @@ public abstract class TileEntityLootable extends TileEntityContainer { + CriterionTriggers.N.a((EntityPlayer) entityhuman, this.lootTable); } - this.lootTable = null; +- this.lootTable = null; ++ //this.lootTable = null; // Paper + this.lootableData.processRefill(entityhuman); // Paper LootTableInfo.Builder loottableinfo_builder = (new LootTableInfo.Builder((WorldServer) this.world)).set(LootContextParameters.POSITION, new BlockPosition(this.position)).a(this.lootTableSeed);