Custom unlockable unlocks gamestage, but doesn't trigger orestages update
codetaylor opened this issue ยท 2 comments
What
- Stage blocks using OreStages mod
- Create Reskillable unlockable to unlock ore stage
- Unlock Reskillable unlockable
- Notice "You have unlocked..." message
- Notice staged blocks aren't changed and no chunks are re-rendered
This happens in single player. Leaving the world and re-entering the world will display the staged blocks properly. Also, entering the command to add the stage does trigger the block change and the chunk update. Adding a different stage to the player does trigger the chunk update, but doesn't reveal the blocks.
Maybe the added stage isn't being synced to the client. I'm going to cross-post this in CompatSkills and GameStages. When PlayerDataHandler.getStageData(player).unlockStage(gameStage)
is called, does GameStages sync the change with the client or is that the responsibility of the caller?
Reference
Versions
Forge: 14.23.2.2618
Reskillable-1.12.2-1.0.0
CompatSkills-1.12.2-1.0.0
GameStages-1.12.2-1.0.85
OreStages-1.12.2-1.0.26
I can confirm that this is the case. He is not firing the events that other mods are listening to. I could have designed the API to be a bit more friendly towards this, however other mods unlocking the stage in this way wasn't really planned by me when I first started and due to backwards compat reasons it can not be improved until 1.13.
Thanks @Darkhax ! :)