Darkhax-Minecraft / Game-Stages

An API for universal player based progression.
https://minecraft.curseforge.com/projects/game-stages
GNU Lesser General Public License v2.1
63 stars 17 forks source link

[Question] In 2.0, GameStageHelper.hasStage/etc On Client Always Returns False #21

Closed legendblade closed 6 years ago

legendblade commented 6 years ago

In testing, I've noticed that, when run on the client side, calling GameStageHelper.hasStage (and similar methods, without directly passing in an IStageData) will always return false - I assume this is because there are the client side specific methods, but I wanted to check if this was actually intended or not. This ultimately seems to be an issue that the local IStageData retrieved from GameStageSaveHandler, unless specifically accessed through GameStageSaveHandler.clientData, has no stages.

I've found this issue both:

This has been observed specifically with:

Sorry for the trouble; just wanted to double check. Thanks!

Darkhax commented 6 years ago

Yes, this is the intended behavior. Those methods are server-side only. IIRC I didn't mark them with that annotation because it would also remove it from the integrated server.

legendblade commented 6 years ago

Got it. Thanks for the quick reply. 👍