mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-26 04:06:00 +01:00
Fix '/is level' when stackables are disabled
This commit is contained in:
parent
8d02557d6d
commit
be737d0a6f
@ -143,7 +143,7 @@ public class LevellingManager {
|
||||
amount = epicSpawners.getSpawnerManager()
|
||||
.getSpawnerFromWorld(location).getSpawnerDataCount();
|
||||
}
|
||||
} else if (stackableManager.getStackableMaterials().contains(blockMaterial)) {
|
||||
} else if (stackableManager != null && stackableManager.getStackableMaterials().contains(blockMaterial)) {
|
||||
World world = Bukkit.getWorld(chunkSnapshotList.getWorldName());
|
||||
Location location = new Location(world, chunkSnapshotList.getX() * 16 + x, y, chunkSnapshotList.getZ() * 16 + z);
|
||||
if (stackableManager.isStacked(location)) {
|
||||
|
Loading…
Reference in New Issue
Block a user