Permalink
Browse files

Fixed RangedCollector assuming chests.

  • Loading branch information...
me4502 committed Sep 11, 2017
1 parent e3d7926 commit 9baf7bf3a74be6e270a88916b1403ad5034e7480
@@ -22,7 +22,6 @@
import org.bukkit.Server;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.Chest;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Item;
import org.bukkit.inventory.InventoryHolder;
@@ -157,7 +156,7 @@ public boolean collect() {
if(!InventoryUtil.doesBlockHaveInventory(chest))
return false;
Chest chestState = (Chest) chest.getState();
InventoryHolder chestState = (InventoryHolder) chest.getState();
// Add the items to a container, and destroy them.
for (Item entity : itemsForChest) {

0 comments on commit 9baf7bf

Please sign in to comment.