mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-15 05:33:40 +00:00
Prevent lava bucket placed in air (far away from user)
event.isCancelled() does not return the expected value
This commit is contained in:
parent
f0c503dd13
commit
ebc56c0e15
1 changed files with 0 additions and 5 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue