Portable Teleporter GUI Does Not Update Correctly
UnknownSerhan opened this issue ยท 1 comments
Issue description
Portable Teleporter GUI doesn't update correctly after changing frequencies. The frequency is actually set after clicking though.
Base.Profile.2024.07.31.-.23.29.51.03.mp4
Steps to reproduce
- Get a portable teleporter and try to set a frequency.
- See that the GUI doesn't update but the frequency is set correctly.
Minecraft version
1.21 (Latest)
NeoForge version
21.0.145
Mekanism version
10.6.7 (Latest)
Other relevant versions
No response
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
No response
when you click the "Set" button, a packet is sent to the server with your selected frequency
then server changes nbt data(components) of your portable teleporter item, and send you a packet for it, but it never sends a packet for updating frequency, needed to update the gui
i dont know, how to correctly solve this problem, here is a few options:
- (server) send update frequency packet alongside item update packet
- (client) listen for item updates, and change frequency in gui, if item has changed
- (client) when "Set" button is pressed, change frequency in gui, before sending a packet to the server (it will work fine, because "Teleport" button send a packet with selected frequency from client side)
in portable qio, frequency is read from item data
before this commit, portable teleporter's frequency was read from item data
i implemented the third solution for my friend, i can share the code and compiled mod, if anyone wants
*this information is at the moment of 10.7.7.64 release