Item Stages

Item Stages

20M Downloads

Items won't hide in JEI on a server after someone joins

Diversion98 opened this issue ยท 6 comments

commented

Hi,

I have a dedicated server with my modpack running on it.
After the latest update of me, I noticed that restricted items are not hidden in JEI by default on servers.
This is only on the server, in singleplayer it is hided by default like the wiki says.

If I add the following, it still doesnt work as intended on the server:
.setHiddenInJEI(true);

Thought I might report this because on the wiki of CraftTweaker, it says that it is hided by default.
https://docs.blamejared.com/1.16/en/mods/ItemStages/ItemStages

I pasted my scripts in 2 different pastes so you can look what I coded.
the only difference is .setHiddenInJEI(true);

not working script 1: https://paste.ee/p/xhNSC
not working script 2: https://paste.ee/p/d5ZkG

edit:

This is a whole other issue actually.
So when a player joins the server, the player can see all the items like said before.
when I do /gamestage info @p the player has no gamestages unlocked.
BUT when I do /gamestage clear @p, all the restricted items are hidden.

Recipestages works as intended, crafting is restricted for locked items, even without the /gamestage clear

commented

I hope u understand the issue a bit xD

commented

Same here still, multiplayer jei doesn't hide the items. Which in my case defeats the whole point.

commented

If anyone is having this issue please try the latest versions for 1.19.2 and try again. Specifically, Game Stages 11.1.5 and ItemStages 5.1.4. These updates fix some of the desync issues related to dedicated servers. If this fix works, please let me know so I can apply these fixes to other versions.

commented

I can confirm that this works :)

commented

any update on this?

commented

I am using 1.18.2 and having the same problem.
Anti-pickup working for ItemStages. But items are still showing up in JEI. Can't get them to disappear even using /gamestage clear MyUserName
This is all working in singleplayer. Just not in multiplayer.