mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-09-04 11:01:38 +02: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()
|
amount = epicSpawners.getSpawnerManager()
|
||||||
.getSpawnerFromWorld(location).getSpawnerDataCount();
|
.getSpawnerFromWorld(location).getSpawnerDataCount();
|
||||||
}
|
}
|
||||||
} else if (stackableManager.getStackableMaterials().contains(blockMaterial)) {
|
} else if (stackableManager != null && stackableManager.getStackableMaterials().contains(blockMaterial)) {
|
||||||
World world = Bukkit.getWorld(chunkSnapshotList.getWorldName());
|
World world = Bukkit.getWorld(chunkSnapshotList.getWorldName());
|
||||||
Location location = new Location(world, chunkSnapshotList.getX() * 16 + x, y, chunkSnapshotList.getZ() * 16 + z);
|
Location location = new Location(world, chunkSnapshotList.getX() * 16 + x, y, chunkSnapshotList.getZ() * 16 + z);
|
||||||
if (stackableManager.isStacked(location)) {
|
if (stackableManager.isStacked(location)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user