forked from LogBlock/LogBlock
Dragon eggs also fall.
Fixed check to cover all default falling blocks.
This commit is contained in:
@@ -31,7 +31,7 @@ public class BlockPlaceLogging extends LoggingListener
|
|||||||
final String playerName = event.getPlayer().getName();
|
final String playerName = event.getPlayer().getName();
|
||||||
|
|
||||||
//Handle falling blocks
|
//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();
|
Location loc = event.getBlock().getLocation();
|
||||||
int x = loc.getBlockX();
|
int x = loc.getBlockX();
|
||||||
int y = loc.getBlockY();
|
int y = loc.getBlockY();
|
||||||
|
Reference in New Issue
Block a user