Mod is giving wrong coordinates.
husnain-majeed opened this issue ยท 4 comments
I know the top left shows my position and not the blocks in the screenshot, however, the problem I am stating happens when I am on both blocks show, the screenshot is just so you can visualize the problem.
You misunderstand the blocks are not on the same Z Axis as I am looking West therefore when I move left or right I am moving on the Z axis so the Z increments by 1 per block (as it does on your mod and in-game coordinates) except when you get to 0 they in your mod there are two blocks with the coordinate Z of 0, this means all coordinates after 0 are wrong by - 1.
Both those dirt blocks are Z : 0 in your mod when moving left to right while the left should be 0 and the right should be -1
Hope this clears things up, if not ill try to take some screenshots
Yeah just tested it; it's offset by one in X, Y and Z axes. It's because the code only grabs the first value of the axis. Simple to fix; thanks for the clarification.