06-28-2013, 11:14 PM
I'll have a look at your world over the weekend.
As for the gamemode in the player json file, "-1" means "inherit from the world", so if the world is in creative mode, the player has creative mode; if the world is in survival, the player is in survival. That's the gmNotSet flag.
There is no arithmetic on the gamemode, it is set to constants; survival = 0, creative = 1. Setting is done directly, not by addition.
As for the gamemode in the player json file, "-1" means "inherit from the world", so if the world is in creative mode, the player has creative mode; if the world is in survival, the player is in survival. That's the gmNotSet flag.
There is no arithmetic on the gamemode, it is set to constants; survival = 0, creative = 1. Setting is done directly, not by addition.