mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Fix entity pathing not matching vanilla. Closes #6755
This commit is contained in:
1 parent
e374f62037
commit
07b62b77e6
3 files changed
+19
-3
No files matched your search
@@ -882,7 +882,7 @@ public interface IForgeBlock
|
||||
@Nullable
|
||||
default PathNodeType getAiPathNodeType(BlockState state, IBlockReader world, BlockPos pos, @Nullable MobEntity entity)
|
||||
{
|
||||
return state.isBurning(world, pos) ? PathNodeType.DANGER_FIRE : null;
|
||||
return state.getBlock() == Blocks.LAVA ? PathNodeType.LAVA : state.isBurning(world, pos) ? PathNodeType.DAMAGE_FIRE : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user