Posted February 5, 20169 yr I have set clear writeToNBT and readFromNBT functions on all my machines and they work for things like syncing from server to client. However, whenever I save and quit the world then come back, the data doesn't stay. Is it just because I'm in a decompiled dev environment or did I do something wrong? One specific example could be my TileEntityEnervator. Here's the file for it: https://github.com/AnZaNaMa/EnergyTools/blob/master/src/main/java/com/AnZaNaMa/EnergyTools/Entity/TileEntity/TileEntityEnervator.java#L77 - Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.
February 5, 20169 yr PowerConnectable doesn't call the super methods from its overrides of writeToNBT / readFromNBT . Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
February 5, 20169 yr Author Ah, okay thanks! Totally missed that - Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.
February 5, 20169 yr Since this issue is now resolved, could you lock this topic and mark it as SOLVED? I still haven't published a mod because I can never get that in-dev version just right to warrant a public release. And yes, after two years of mod development I am still learning to speak Java. Follow me on GitHub: https://github.com/yooksi Contact me on Twitter: https://twitter.com/yooksi Read my Minecraft blog: https://yooksidoesminecraft.blogspot.de/
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.