[Issue] getPlayerPos returns Nil if the Player Detector and Player have a negative x and or z values. But only if the Player has a lower value than the Detector.
henkeeman opened this issue ยท 5 comments
Description
If the Player and the Player Detector both have a negative z or x value but the player has a lesser value the Player Detectors getPlayerPos() returns nil.
If the Player has a negative x or z value but the Player Detector has a positive x and z value it seems to work fine.
Example:
The Player Detector is located on the -100, 63, 40 and the player is located on -101, 63, 40 getPlayerPos() returns nil.
Same thing with the z-axis if the Players z value is lower than the Player Detector.
Steps to reproduce the behavior:
- Place down computer and Player Detector on a negative x or and z value.
- Position yourself so that you have a lower x and or z value than the Player Detector.
- Wrap the Player Detector and input the getPlayerPos("Username") function
Versions:
- Forge version: 36.1.24 - MC - 1.16.5
- AdvancedPeripherals version: 0.6.5b
advancedperipherals-0.6.5b.zip
Hey, could you try it with this version?
Unzip the file before using
It does not seem to be working at all anymore. The getPlayerPos() just returns nil now, even with positive coordinates.
advancedperipherals-0.6.6b.zip
Hey, this version should work. Could you try it?
Unzip the file before using it