From 8f24867d12e215ab369faaff838c318d9834a232 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 19 Aug 2017 16:55:00 -0700 Subject: [PATCH] Default chest fix for AcidIsland. --- src/com/wasteofplastic/askyblock/schematics/Schematic.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/com/wasteofplastic/askyblock/schematics/Schematic.java b/src/com/wasteofplastic/askyblock/schematics/Schematic.java index abd9edad7..e48286f97 100644 --- a/src/com/wasteofplastic/askyblock/schematics/Schematic.java +++ b/src/com/wasteofplastic/askyblock/schematics/Schematic.java @@ -1454,11 +1454,10 @@ public void generateIslandBlocks(final Location islandLoc, final Player player, blockToChange.setType(Material.CHEST); // Only set if the config has items in it if (Settings.chestItems.length > 0) { - final Chest chest = (Chest) blockToChange.getState(); + final InventoryHolder chest = (InventoryHolder) blockToChange.getState(); final Inventory inventory = chest.getInventory(); - inventory.clear(); + //inventory.clear(); inventory.setContents(Settings.chestItems); - chest.update(true, false); } // Fill the chest and orient it correctly (1.8 faces it north! DirectionalContainer dc = (DirectionalContainer) blockToChange.getState().getData();