Jump to content

[SOLVED] How to get an instance of MinecraftServer in Forge? 1.14


DJ1TJOO

Recommended Posts

I have a door and when the player clicks on a gui de door opens/closes. In my screen class I use door.toggleDoor(dls.getContainer().getTileEntity().getWorld(), dls.getContainer().getTileEntity().getPos(), true/false); The problem is that dls.getContainer().getTileEntity().getWorld() returns the client world, the client world does change and the door opens, but not on de server side so you can't go through it.

Can someone please help?

Sorry for my English

Edited by DJ1TJOO
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.