From a9498d2c68704fe9e61ae0cce61640410c199c5a Mon Sep 17 00:00:00 2001 From: Wizjany Date: Sun, 21 Aug 2011 11:47:29 -0400 Subject: [PATCH] Stop working around broken stuff and do it like we always have. --- .../sk89q/worldedit/bukkit/WorldEditPlayerListener.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlayerListener.java b/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlayerListener.java index a049b8405..6dee2f290 100644 --- a/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlayerListener.java +++ b/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlayerListener.java @@ -70,9 +70,10 @@ public void onPlayerQuit(PlayerQuitEvent event) { */ @Override public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { - if (event.isCancelled()) + if (event.isCancelled()) { return; - + } + String[] split = event.getMessage().split(" "); if (plugin.getWorldEdit().handleCommand(wrapPlayer(event.getPlayer()), split)) { @@ -87,8 +88,6 @@ public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { */ @Override public void onPlayerInteract(PlayerInteractEvent event) { - if (event.isCancelled() && event.hasBlock()) - return; if (event.getAction() == Action.LEFT_CLICK_BLOCK) { LocalWorld world = new BukkitWorld(event.getClickedBlock().getWorld()); WorldVector pos = new WorldVector(world, event.getClickedBlock().getX(),