From c8b360c5ec3c44336247e2432421525e14df77b8 Mon Sep 17 00:00:00 2001 From: David Berdik Date: Sat, 3 Aug 2019 23:06:17 -0400 Subject: [PATCH] Fixed exception with cave generation --- src/net/theprogrammersworld/herobrine/AI/cores/BuildStuff.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/theprogrammersworld/herobrine/AI/cores/BuildStuff.java b/src/net/theprogrammersworld/herobrine/AI/cores/BuildStuff.java index 273f253..7fc5b7d 100644 --- a/src/net/theprogrammersworld/herobrine/AI/cores/BuildStuff.java +++ b/src/net/theprogrammersworld/herobrine/AI/cores/BuildStuff.java @@ -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); } } }