Open FusHerkA opened 10 years ago
Old news, since the bot was coded with floats, if the Y coordinate has a .5 at the back, it's pathfinding code cannot make make a patch, thus it gets stuck on slabs. Interestingly enough, because of this bug, it never walks across half slabs, only full blocks.
@LefsFlare positions are doubles https://github.com/DarkStorm652/DarkBot/blob/master/src/main/java/org/darkstorm/darkbot/minecraftbot/world/entity/Entity.java#L10
Oh well, I didn't check. I do know that the path-finding code doesn't support decimals very well.
https://github.com/DarkStorm652/DarkBot/commit/67e7898a7eec95684d804d7eeafa8256b4b2f4f5
I'm currently just adding bounding boxes of other blocks and I will close this and merge the development branch once complete.
This functionality is required for several block types, including slabs and stairs.