Darkhax-Minecraft / ItemStages

Allows items to be put into stages.
GNU Lesser General Public License v2.1
7 stars 18 forks source link

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

Open Diversion98 opened 2 years ago

Diversion98 commented 2 years ago

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

Diversion98 commented 2 years ago

I hope u understand the issue a bit xD

Diversion98 commented 2 years ago

any update on this?

Necessitysslave commented 1 year ago

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.

adamk33n3r commented 8 months ago

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

Darkhax commented 8 months ago

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.

Undefined403 commented 7 months ago

I can confirm that this works :)