mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-23 18:45:39 +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;
|
||||
|
||||
// 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;
|
||||
|
||||
// Remove all stacked entities from our stackable friends.
|
||||
|
Loading…
Reference in New Issue
Block a user