BeardlessBrady Posted November 6, 2016 Posted November 6, 2016 I'm having some trouble sending a packet from a client GUI(through a button push) to the server. My initial intent was to spawn an item outside the block by pushing the button, but now Im just testing with a println. Crash: http://pastebin.com/DQCyC7rL Gui Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/client/guis/GuiVendor.java Packet Handler Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/handler/PacketHandler.java Message Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/network/PacketSendItem.java Quote
shadowfacts Posted November 6, 2016 Posted November 6, 2016 Your packet needs to have a no-arguments constructor. Quote Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
BeardlessBrady Posted November 6, 2016 Author Posted November 6, 2016 Haha that is very weird. Welp it fixed it though so thanks! Quote
Recommended Posts
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.