Prevent lava bucket placed in air (far away from user)

event.isCancelled() does not return the expected value
This commit is contained in:
snowleo 2011-06-12 16:15:50 +02:00
parent f0c503dd13
commit ebc56c0e15

View File

@ -24,11 +24,6 @@ public class EssentialsProtectPlayerListener extends PlayerListener
@Override @Override
public void onPlayerInteract(final PlayerInteractEvent event) public void onPlayerInteract(final PlayerInteractEvent event)
{ {
if (event.isCancelled())
{
return;
}
final User user = ess.getUser(event.getPlayer()); final User user = ess.getUser(event.getPlayer());
if (prot.getSettingBool(ProtectConfig.disable_build) && !user.canBuild()) if (prot.getSettingBool(ProtectConfig.disable_build) && !user.canBuild())