Skip to content

Commit

Permalink
fixed #836
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke100000 committed Aug 12, 2024
1 parent ba2aecf commit d9350c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Villager can now glow while invisible
* You can now whistle villagers when they sit in vehicles
* Height now affects Hemoglobin levels
* Villagers no longer jump in front of gates

# 7.5.18

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public ExtendedPathNodeType findNearbyNodeTypes(BlockView world, int x, int y, i
pathNodeType = adjustNodeType(world, canOpenDoors, canEnterOpenDoors, pos, pathNodeType);

// Villager can also open gates
if (blockState.isIn(BlockTags.FENCE_GATES, state -> state.getBlock() instanceof FenceGateBlock)) {
if (Config.getServerConfig().useSmarterDoorAI && blockState.isIn(BlockTags.FENCE_GATES, state -> state.getBlock() instanceof FenceGateBlock)) {
pathNodeType = ExtendedPathNodeType.WALKABLE_DOOR;
}

Expand Down

0 comments on commit d9350c7

Please sign in to comment.