From f95e0ebea200cb2b4e04a8f7436c519120a64541 Mon Sep 17 00:00:00 2001 From: Shyanne Date: Fri, 29 Sep 2023 15:01:12 -0400 Subject: [PATCH] Update BlockFormListener.java replaced condition to use variable name Co-authored-by: Peaches_MLG --- .../iridium/iridiumskyblock/listeners/BlockFormListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/iridium/iridiumskyblock/listeners/BlockFormListener.java b/src/main/java/com/iridium/iridiumskyblock/listeners/BlockFormListener.java index 7581249ec..a337077c3 100644 --- a/src/main/java/com/iridium/iridiumskyblock/listeners/BlockFormListener.java +++ b/src/main/java/com/iridium/iridiumskyblock/listeners/BlockFormListener.java @@ -39,7 +39,7 @@ public void onBlockForm(BlockFormEvent event) { Optional xMaterialOptional = randomMaterialList.nextElement(); if (!xMaterialOptional.isPresent()) return; - if((randomMaterialList == netherOreLevels.get(upgradeLevel)) && (IridiumSkyblock.getInstance().getConfiguration().netherOnlyGenerator) && (!(event.getNewState().getWorld().getEnvironment() == World.Environment.NETHER))) return; + if( isBasaltGenerator && IridiumSkyblock.getInstance().getConfiguration().netherOnlyGenerator && event.getNewState().getWorld().getEnvironment() != World.Environment.NETHER) return; Material material = xMaterialOptional.get().parseMaterial(); if (material == Material.COBBLESTONE && newMaterial == XMaterial.STONE) material = Material.STONE;