Moar non-solid blocks and a fix for interaction, fixes issue #96 and possibly #94

This commit is contained in:
H31IX committed 2012-06-19 22:14:39 -04:00
1 parent cfef7e2787
commit 32b3653560
2 files changed
+16 -1

No files matched your search

@@ -182,7 +182,6 @@ public class PlayerListener extends EventListener
backend.logEatingStart(player);
}
}
Block block = event.getClickedBlock();
if (block != null)
@@ -191,6 +191,22 @@ public final class Utilities
NOTSOLID.add((byte)Material.AIR.getId());
NOTSOLID.add((byte)Material.WATER.getId());
NOTSOLID.add((byte)Material.LAVA.getId());
NOTSOLID.add((byte)Material.REDSTONE_WIRE.getId());
NOTSOLID.add((byte)Material.WOOD_PLATE.getId());
NOTSOLID.add((byte)Material.STONE_PLATE.getId());
NOTSOLID.add((byte)Material.SAPLING.getId());
NOTSOLID.add((byte)Material.RED_ROSE.getId());
NOTSOLID.add((byte)Material.YELLOW_FLOWER.getId());
NOTSOLID.add((byte)Material.BROWN_MUSHROOM.getId());
NOTSOLID.add((byte)Material.RED_MUSHROOM.getId());
NOTSOLID.add((byte)Material.THIN_GLASS.getId());
NOTSOLID.add((byte)Material.LADDER.getId());
NOTSOLID.add((byte)Material.RAILS.getId());
NOTSOLID.add((byte)Material.DETECTOR_RAIL.getId());
NOTSOLID.add((byte)Material.POWERED_RAIL.getId());
NOTSOLID.add((byte)Material.STEP.getId());
NOTSOLID.add((byte)Material.VINE.getId());
NOTSOLID.add((byte)Material.ENCHANTMENT_TABLE.getId());
FOOD.add(Material.COOKED_BEEF);
FOOD.add(Material.COOKED_CHICKEN);
FOOD.add(Material.COOKED_FISH);