Fixed munchdews eating leaves below them. Closes #1941

This commit is contained in:
Vasco Lavos committed 2016-10-14 18:32:15 +01:00
1 parent c6a7be61a2
commit ee96f3366d
1 file changed
+1 -1
@@ -58,7 +58,7 @@ public class SubTileMunchdew extends SubTileGenerating {
List<BlockPos> coords = new ArrayList<>();
BlockPos pos = supertile.getPos();
for(BlockPos pos_ : BlockPos.getAllInBox(pos.add(-RANGE, -RANGE_Y, -RANGE), pos.add(RANGE, RANGE_Y, RANGE))) {
for(BlockPos pos_ : BlockPos.getAllInBox(pos.add(-RANGE, 0, -RANGE), pos.add(RANGE, RANGE_Y, RANGE))) {
if(supertile.getWorld().getBlockState(pos_).getMaterial() == Material.LEAVES) {
boolean exposed = false;
for(EnumFacing dir : EnumFacing.VALUES) {