From c9bf3f38197df15a16d0ed2a63ad80c9a9b84ace Mon Sep 17 00:00:00 2001 From: Aikar Date: Tue, 7 Jun 2016 03:03:51 -0400 Subject: [PATCH] Fix issue with chests being erased - #322 Fixed --- ...able-API-Replenishable-Lootables-Feature.patch | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Spigot-Server-Patches/LootTable-API-Replenishable-Lootables-Feature.patch b/Spigot-Server-Patches/LootTable-API-Replenishable-Lootables-Feature.patch index c44b2f6b71..4eac5a5931 100644 --- a/Spigot-Server-Patches/LootTable-API-Replenishable-Lootables-Feature.patch +++ b/Spigot-Server-Patches/LootTable-API-Replenishable-Lootables-Feature.patch @@ -567,10 +567,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 if (nbttagcompound.hasKeyOfType("LootTable", 8)) { this.m = new MinecraftKey(nbttagcompound.getString("LootTable")); this.n = nbttagcompound.getLong("LootTableSeed"); - return true; +- return true; ++ return false; // Paper - always load the items, table may still remain } else { -- return false; -+ return true; // Paper - always load the items, table may still remain + return false; } } @@ -579,12 +579,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 if (this.m != null) { nbttagcompound.setString("LootTable", this.m.toString()); if (this.n != 0L) { -@@ -0,0 +0,0 @@ public abstract class TileEntityLootable extends TileEntityContainer implements + nbttagcompound.setLong("LootTableSeed", this.n); + } - return true; +- return true; ++ return false; // Paper - always save the items, table may still remain } else { -- return false; -+ return true; // Paper - always save the items, table may still remain + return false; } }