From 95eaaf14573b6be0cb080cd17345a31d128ec4b1 Mon Sep 17 00:00:00 2001 From: kingbirdy Date: Mon, 3 Aug 2015 21:41:28 -0400 Subject: [PATCH] Fix LavaFlow affecting plants removed unnecessary check for plantbending --- .../projectkorra/earthbending/LavaFlow.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/com/projectkorra/projectkorra/earthbending/LavaFlow.java b/src/com/projectkorra/projectkorra/earthbending/LavaFlow.java index 2e05a64f..c635bfad 100644 --- a/src/com/projectkorra/projectkorra/earthbending/LavaFlow.java +++ b/src/com/projectkorra/projectkorra/earthbending/LavaFlow.java @@ -331,9 +331,8 @@ public class LavaFlow { } /** - * Creates a LavaBlock and also accounts for melting over plants by creating - * new Plantbending() objects. It also appends the TempBlock to our - * arraylist called TEMP_LAVA_BLOCKS. + * Creates a LavaBlock and appends the TempBlock to our arraylist called + * TEMP_LAVA_BLOCKS. * * If ALLOW_NATURAL_FLOW is turned on then this method will remove the block * from TempBlock.instances, which will allow the lava to flow naturally. @@ -341,15 +340,7 @@ public class LavaFlow { * @param block the block that will be turned to lava */ public void createLava(Block block) { - boolean valid = false; - if (!isEarthbendableMaterial(block.getType(), player) && WaterMethods.isPlant(block)) { - new Plantbending(block); - block.setType(Material.AIR); - valid = true; - } else if (isEarthbendableMaterial(block.getType(), player)) - valid = true; - - if (valid) { + if (isEarthbendableMaterial(block.getType(), player)) { TempBlock tblock = new TempBlock(block, Material.STATIONARY_LAVA, (byte) 0); TEMP_LAVA_BLOCKS.add(tblock); affectedBlocks.add(tblock);