Fixed tool blocks being actually placed

This commit is contained in:
Robin Kupper
2011-08-29 12:14:28 +02:00
parent 844a63f518
commit de3fe01fe1

View File

@@ -49,7 +49,6 @@ class LBToolListener extends PlayerListener
for (final BlockFace face : new BlockFace[]{BlockFace.NORTH, BlockFace.SOUTH, BlockFace.EAST, BlockFace.WEST})
if (block.getRelative(face).getTypeId() == 54)
params.setSelection(new CuboidSelection(event.getPlayer().getWorld(), block.getLocation(), block.getRelative(face).getLocation()));
if (params.sel == null)
params.setLocation(block.getLocation());
}
@@ -67,6 +66,7 @@ class LBToolListener extends PlayerListener
} catch (final Exception ex) {
player.sendMessage(ChatColor.RED + ex.getMessage());
}
event.setCancelled(true);
}
}
}