mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-27 12:35:17 +01:00
fix null flag state check
This commit is contained in:
parent
c0a56b3fe1
commit
a71331faaa
@ -216,7 +216,8 @@ public class StackingTask extends BukkitRunnable {
|
|||||||
if (isStack) return;
|
if (isStack) return;
|
||||||
|
|
||||||
// Check our WorldGuard flag.
|
// Check our WorldGuard flag.
|
||||||
if (WorldGuardHook.isEnabled() && !WorldGuardHook.getBooleanFlag(livingEntity.getLocation(), "mob-stacking"))
|
Boolean flag = WorldGuardHook.isEnabled() ? WorldGuardHook.getBooleanFlag(livingEntity.getLocation(), "mob-stacking") : null;
|
||||||
|
if (flag != null && !flag)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Remove all stacked entities from our stackable friends.
|
// Remove all stacked entities from our stackable friends.
|
||||||
|
Loading…
Reference in New Issue
Block a user