From 2e96e00182f3e90fa4f06478bda4d0a7be8e4995 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 7 Nov 2016 22:52:54 +0100 Subject: [PATCH] Made worms work with other grass and dirt types too. I hope. Closes #338 --- .../de/ellpeck/actuallyadditions/mod/entity/EntityWorm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/entity/EntityWorm.java b/src/main/java/de/ellpeck/actuallyadditions/mod/entity/EntityWorm.java index 465384c8e..66089e88b 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/entity/EntityWorm.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/entity/EntityWorm.java @@ -32,7 +32,7 @@ public class EntityWorm extends Entity{ public static boolean canWormify(World world, BlockPos pos, IBlockState state){ Block block = state.getBlock(); - boolean rightBlock = block instanceof BlockFarmland || block == Blocks.GRASS || block == Blocks.GRASS_PATH || (block == Blocks.DIRT && state.getValue(BlockDirt.VARIANT) == BlockDirt.DirtType.DIRT); + boolean rightBlock = block instanceof BlockFarmland || block instanceof BlockDirt || block instanceof BlockGrass; if(rightBlock){ BlockPos posUp = pos.up(); IBlockState stateUp = world.getBlockState(posUp);