mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Made worms work with other grass and dirt types too. I hope.
Closes #338
This commit is contained in:
parent
5c5829d503
commit
2e96e00182
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue