mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-05 22:09:44 +00:00
Disable /unlimited for fire block
This commit is contained in:
parent
f4ef5a2094
commit
37d77f3e89
1 changed files with 2 additions and 0 deletions
|
@ -308,6 +308,8 @@ public class EssentialsBlockListener extends BlockListener
|
||||||
case PISTON_BASE:
|
case PISTON_BASE:
|
||||||
is.setDurability((short)0);
|
is.setDurability((short)0);
|
||||||
break;
|
break;
|
||||||
|
case FIRE:
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
boolean unlimitedForUser = user.hasUnlimited(is);
|
boolean unlimitedForUser = user.hasUnlimited(is);
|
||||||
if (unlimitedForUser)
|
if (unlimitedForUser)
|
||||||
|
|
Loading…
Reference in a new issue