mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fixed munchdews eating leaves below them. Closes #1941
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user