Posted March 22, 20169 yr Hey, I am working on a part of my mod which consist in rendering, on client side, some custom area. What is needed to render those areas is sent through a channel ( I send the coordinates, the type of area, the size, ... ) Here comes my problem, the datas are recieved and correctly interpreted (I used some System.out.printl(thing) to watch is the treatement was correct). Once the datas a corectly understood, the client should create a ArrayList<Area> which contains all the areas Object (with the properties inside). But, when i call the list later, in another method in the same class (the list is part of the class), it appears empty. Thanks to the Print I made, I saw that: inside the method that create the list (method called when the packet is recieved), the Print return things like that: [Netty Local Client IO #0/INFO] [sTDOUT]: [nxs.listManager:addToList:160]: area1 and in the other method, it return : [Client thread/INFO] [sTDOUT]: [nxs.listManager:canBuild:73]: list emplty!!! What is the problem ? What is the difference between those two? [Netty Local Client IO #0/INFO] [Client thread/INFO]
March 22, 20169 yr http://greyminecraftcoder.blogspot.com.au/2015/01/thread-safety-with-network-messages.html Problably your problem. If not - show WHOLE code (mainly packet). 1.7.10 is no longer supported by forge, you are on your own.
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.