1
0
mirror of https://github.com/plexusorg/Plex-FAWE.git synced 2025-04-21 14:43:00 +00:00

Worked around brokenness in PlayerInteractEvent

This commit is contained in:
zml2008 2011-08-17 13:33:01 -07:00
parent 59ade7a386
commit 3c92bd9451

@ -87,7 +87,7 @@ public class WorldEditPlayerListener extends PlayerListener {
*/
@Override
public void onPlayerInteract(PlayerInteractEvent event) {
if (event.isCancelled())
if (event.isCancelled() && event.hasBlock())
return;
if (event.getAction() == Action.LEFT_CLICK_BLOCK) {
LocalWorld world = new BukkitWorld(event.getClickedBlock().getWorld());