Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.12.2] Items don't appear instantly #23

Closed
HyCraftHD opened this issue Oct 8, 2019 · 0 comments

Comments

@HyCraftHD
Copy link
Member

commented Oct 8, 2019

Describe the bug
When a player on a server opens the backpack the container shows for a short time an empty backpack. This is caused by opening the container on the client and server side. The server side with the items then overrides this after a tick.

We should call the open gui method only on the server side and not on both:

player.openGui(UsefulBackpacksMod.getInstance(), hand == EnumHand.MAIN_HAND ? 0 : 1, world, 0, 0, 0);

To Reproduce
Steps to reproduce the behavior:

  1. Open the backpack on a server

Expected behavior
Items should appear instantly

Versions

  • Mod version: 1.12.2-1.5.1.37
  • Minecraft version: 1.12.2
  • Forge version: Irrelevant
  • UTeamCore version: Irrelevant
@HyCraftHD HyCraftHD added the bug label Oct 8, 2019
HyCraftHD added a commit that referenced this issue Oct 8, 2019
@HyCraftHD HyCraftHD closed this Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.