joshuaprince / CoordinateOffset

⛏️ A Minecraft Spigot/Paper plugin that configurably obfuscates players' coordinates.
GNU Affero General Public License v3.0
18 stars 7 forks source link

Magnetized compass resets lodestone position after opening inventory #10

Closed Zemenus closed 10 months ago

Zemenus commented 10 months ago

I clicked on the lodestone with compass, everything was fine until I looked into my inventory. Compass got updated right in my hands and it points into another direction.

Environment details

Output of /version: Current: git-Purpur-2127 (MC: 1.20.4)* Previous: git-Purpur-2084 (MC: 1.20.2)

CoordinateOffset version: v3.0.0 PacketEvents/ProtocolLib version: 5.2.0 SNAPSHOT 679 Output of /plugins: there are only Ofssets dependency plugins and, well, CoordinateOffset

Log errors Console didn't write any errors when that occured

Additional context It does that with new compasses too. I also checked NBT data of compass. When I click onto the lodestone and DO NOT open my inventory, coordinate is right in NBT tag, and then, I open my inventory, it updates the compass, and the lodestone position in its NBT tag changes into different position (probably position of the offset?)

joshuaprince commented 10 months ago

Are you in Creative mode when you try this? I've run into similar issues while testing in Creative, but it does not happen in Survival/Adventure since clients cannot affect the NBT of items in their inventory outside of Creative.

Zemenus commented 10 months ago

Yeah, you are right, in survival it won't update itself

joshuaprince commented 10 months ago

Fixed in Creative in v3.0.2