Dragon eggs also fall.

Fixed check to cover all default falling blocks.
This commit is contained in:
Psithief
2012-09-25 15:36:05 +08:00
parent 4b16eba5ed
commit 1f031ca489

View File

@@ -31,7 +31,7 @@ public class BlockPlaceLogging extends LoggingListener
final String playerName = event.getPlayer().getName();
//Handle falling blocks
if (event.getBlock().getType() == Material.SAND || event.getBlock().getType() == Material.GRAVEL) {
if (event.getBlock().getType() == Material.SAND || event.getBlock().getType() == Material.GRAVEL || event.getBlock().getType() == Material.DRAGON_EGG) {
Location loc = event.getBlock().getLocation();
int x = loc.getBlockX();
int y = loc.getBlockY();