mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 04:23:02 +00:00
Fix water/lava bucket bug with mobs
This commit is contained in:
parent
b9daf6aaa5
commit
af5a86c48c
1 changed files with 3 additions and 2 deletions
|
@ -25,10 +25,11 @@ public class EssentialsProtectPlayerListener extends PlayerListener
|
||||||
@Override
|
@Override
|
||||||
public void onPlayerInteract(final PlayerInteractEvent event)
|
public void onPlayerInteract(final PlayerInteractEvent event)
|
||||||
{
|
{
|
||||||
if (event.isCancelled())
|
// Do not return if cancelled, because the interact event has 2 cancelled states.
|
||||||
|
/*if (event.isCancelled())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
final User user = ess.getUser(event.getPlayer());
|
final User user = ess.getUser(event.getPlayer());
|
||||||
|
|
||||||
if (event.hasItem()
|
if (event.hasItem()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue