-
Recently Browsing
No registered users viewing this page.
-
Posts
-
I've changed the serializeNBT and deserialize methods so the value of i is in the key: @Override public CompoundNBT serializeNBT() { CompoundNBT data = new CompoundNBT(); for(int i = 0; i < 26; i++) { data.putInt("xp_" + i, (int) xp[i]); data.putInt("dynamic_" + i, dynamicLevels[i]); data.putInt("static_" + i, staticLevels[i]); } return data; } @Override public void deserializeNBT(CompoundNBT data) { for(int i = 0; i < 26; i++) { xp[i] = data.getInt("xp_" + i); dynamicLevels[i] = data.getInt("dynamic_" + i); staticLevels[i] = data.getInt("static_" + i); } } And now it works, thank you! (I think thats what the first person to reply to this post was trying to tell me to do but I didn't understand at the time).
-
By diesieben07 · Posted
Try joining the server anyways and then post the debug.log from server and client. -
It's my own custom one. That's a shame but thank you for your quick reply!
-
By diesieben07 · Posted
You cannot. Your mod needs to run on the client, subscribe to the event and cancel it there. What event is this?
-
-
Topics
-
Who's Online (See full list)