GTNewHorizons / GT-New-Horizons-Modpack

New Modpack with Gregtech, Thaumcraft and Witchery
https://www.gtnewhorizons.com/
Other
947 stars 296 forks source link

Frequency Module needs to be re-equipped to work on space stations or planets #17113

Open Diamantino-Op opened 3 weeks ago

Diamantino-Op commented 3 weeks ago

Your GTNH Discord Username

diamantinoop

Your Pack Version

Nigtly 603

Your Server

Private Server

Java Version

Java 21

Type of Server

Vanilla Forge

Your Expectation

Frequency module should work whithout needing to re-equip it every time you go / tp to a planet or space station.

The Reality

Need to re-equip the frequency module every time

Your Proposal

Fix it somehow.

Final Checklist

cargocats commented 3 weeks ago

The cause of this seems to be that when a dimension is unloaded, it clears the playerItemData cache, which is used to determine if a player is wearing a Frequency Module. However, playerItemData is only updated when the player equips any Galacticraft gear and is not updated when a player goes to a new dimension.