Posted June 4, 201411 yr What is the right way to do packet handling as cpw marked the ones on the wiki as not right and can cause memory leaks.
June 4, 201411 yr Pahimar's open source mod, Equivalent Exchange 3, shows the proper way to to packet handling: https://github.com/pahimar/Equivalent-Exchange-3/tree/master/src/main/java/com/pahimar/ee3/network if (user.hasKnowledgeOfJava) { if (user.question.hasCode) { return interpetHelpfulResponse(user.getQuestion()); } else { return "Could you post your code please?"; } } else { return "Learn some freaking Java!"; }
June 4, 201411 yr Author Thanks I hope this way work. As all the ones that are now no good on the wiki (they are made for 1.7 but cpw says don't use them) never worked for me.
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.