Skip to content
Success

Changes

Summary

  1. Revert passable state to last-wins. PassableState priority appears to have too much friction, and a custom passable state combining API would run into difficulties with cross-plugin compatibility. One alternative would be to expose some passability bits for ground, water, flying, etc. in the storage to both slightly optimise block lookups and allow safer passability overrides. (commit: 7c80504) (details)
Commit 7c8050471455571229ce481a57762c130141973a by fullwall
Revert passable state to last-wins. PassableState priority appears to have too much friction, and a custom passable state combining API would run into difficulties with cross-plugin compatibility. One alternative would be to expose some passability bits for ground, water, flying, etc. in the storage to both slightly optimise block lookups and allow safer passability overrides.
(commit: 7c80504)
The file was modifiedsrc/main/java/net/citizensnpcs/api/astar/pathfinder/BlockExaminer.java
The file was modifiedsrc/main/java/net/citizensnpcs/api/astar/pathfinder/SwimmingExaminer.java
The file was modifiedsrc/main/java/net/citizensnpcs/api/astar/pathfinder/VectorNode.java
The file was modifiedsrc/main/java/net/citizensnpcs/api/astar/pathfinder/FlyingBlockExaminer.java
The file was modifiedsrc/main/java/net/citizensnpcs/api/astar/pathfinder/MinecraftBlockExaminer.java