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/SwimmingExaminer.java (diff)
The file was modifiedsrc/main/java/net/citizensnpcs/api/astar/pathfinder/MinecraftBlockExaminer.java (diff)
The file was modifiedsrc/main/java/net/citizensnpcs/api/astar/pathfinder/FlyingBlockExaminer.java (diff)
The file was modifiedsrc/main/java/net/citizensnpcs/api/astar/pathfinder/BlockExaminer.java (diff)
The file was modifiedsrc/main/java/net/citizensnpcs/api/astar/pathfinder/VectorNode.java (diff)