Fixed exception with cave generation

This commit is contained in:
David Berdik 2019-08-03 23:06:17 -04:00
parent 6591c03b10
commit c8b360c5ec

View File

@ -119,7 +119,7 @@ public class BuildStuff extends Core {
final int chance = randgen.nextInt(100);
if (chance > 70) {
if (Herobrine.getPluginCore().getSupport().checkBuild(world.getBlockAt(x, y, z).getLocation())) {
world.getBlockAt(x, y, z).setType(Material.matchMaterial("REDSTONE_TORCH_ON"));
world.getBlockAt(x, y, z).setType(Material.REDSTONE_TORCH);
}
}
}