Jump to content

Recommended Posts

Posted

Hey Guys!

 

I created a new Sign for my mod. The problem is, that I can't sync the sign after exiting the gui, because the method I tried leads to an error.

 

If i click on done in the gui, the game crashes.

 

onGuiClosed

 

  Reveal hidden contents

 

 

Important parts of the TileEntity:

 

  Reveal hidden contents

 

 

And the error screen:

 

  Reveal hidden contents

 

Posted

Caused by: java.lang.ClassCastException: net.minecraft.network.NetHandlerPlayServer cannot be cast to net.minecraft.network.play.INetHandlerPlayClient
at net.minecraft.network.play.server.S35PacketUpdateTileEntity.processPacket(S35PacketUpdateTileEntity.java:69) ~[s35PacketUpdateTileEntity.class:?]

Maybe....

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Well, I now created a class that extends Packet. But how can I get access to the world or the Tile Entities in  processPacket to commit the sended changes?

 

 

  Reveal hidden contents

 

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.