diff --git a/Plugins/Mineplex.MapParser/src/mineplex/mapparser/Parse.java b/Plugins/Mineplex.MapParser/src/mineplex/mapparser/Parse.java index 27184accb..0126ff20e 100644 --- a/Plugins/Mineplex.MapParser/src/mineplex/mapparser/Parse.java +++ b/Plugins/Mineplex.MapParser/src/mineplex/mapparser/Parse.java @@ -157,6 +157,15 @@ public class Parse block.getRelative(BlockFace.DOWN).setTypeId(0); } } + else if (block.getType() == Material.LEAVES || block.getType() == Material.LEAVES_2) + { + if (block.getData() <= 3) + { + // https://minecraft.gamepedia.com/Java_Edition_data_values#Leaves + // For leaves, you add 4 to get the no decay version + block.setData((byte) ((int)block.getData() + 4)); + } + } //Spawns + Borders if (block.getTypeId() == 147)