Skip to content

Commit

Permalink
Default chest fix for AcidIsland.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Aug 19, 2017
1 parent e7952a2 commit 8f24867
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/com/wasteofplastic/askyblock/schematics/Schematic.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8f24867

Please sign in to comment.