@Override public void breakBlock(World world, int x, int y, int z, int par5, int par6) { TileEntityTent tile = (TileEntityTent) world.getBlockTileEntity(x, y, z); if (tile != null) { color = tile.color; BlockUtil.dropItems(world, x, y, z); tile.structures[tile.rotation].destroyStructure(world, tile.tracker[tile.rotation]); super.breakBlock(world, x, y, z, par5, par6); if (!tile.dropped) { ArrayList<ItemStack> stacks = getDroppes(world, x, y, z, world.getBlockMetadata(x, y, z), 1); stacks.addAll(tile.getContends()); for (ItemStack stack : stacks) { dropBlockAsItem_do(world, x, y, z, stack); } tile.dropped = true; } } world.setBlock(x, y, z, 0); }