This commit is contained in:
Travis Eggett 2012-05-15 22:08:35 -06:00
parent a045b02cfe
commit 77cfa3ef19
2 changed files with 1 additions and 0 deletions

View File

@ -1283,6 +1283,7 @@ class DeathListener implements Listener{
Block block = event.getClickedBlock();
Player p = event.getPlayer();
//currently crashes the server when refilling....
//Kinda glitchy through all here...
if(block.getState() instanceof Chest && p.getItemInHand().getType()== Material.BLAZE_ROD && event.getAction() == Action.LEFT_CLICK_BLOCK){
ItemStack[] itemsinchest = ((Chest) block.getState()).getInventory().getContents();