Fixed exception with cave generation
This commit is contained in:
parent
6591c03b10
commit
c8b360c5ec
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user