Posted December 1, 201410 yr I noticed that in ssp nbt only gets saved once, when you exit the world. Do I need to do anything special for smp? By that I mean, when another player uses the block does it automatically update the tileEntity. The proud(ish) developer of Ancients
December 1, 201410 yr Author I meant the differences in packets on ssp/smp. I noticed that packets/nbt only gets read on world load, so I was wondering if a player updated the tileEntity, would the packet get sent automatically on smp. The proud(ish) developer of Ancients
December 1, 201410 yr SMP / SSP have no differences in packets. As long as you do this: @Override public Packet getDescriptionPacket() { NBTTagCompound nbtTag = new NBTTagCompound(); writeToNBT(nbtTag); return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, nbtTag); } @Override public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity packet) { readFromNBT(packet.func_148857_g()); } Your TEs will update properly. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 1, 201410 yr Author ok thanks, that's all I was wondering. The proud(ish) developer of Ancients
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.