Fixed setting more gamemodes

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-18 16:43:00 +02:00
parent 3577667039
commit bcb76b51f4
2 changed files with 3 additions and 2 deletions

View File

@ -785,7 +785,7 @@ class Player{
"y" => $this->data->get("position")["y"],
"z" => $this->data->get("position")["z"],
"unknown1" => 0,
"gamemode" => $this->gamemode,
"gamemode" => ($this->gamemode & 0x01),
"eid" => 0,
));
if(($this->gamemode & 0x01) === 0x01){

View File

@ -29,4 +29,5 @@ the Free Software Foundation, either version 3 of the License, or
define("SURVIVAL", 0);
define("CREATIVE", 1);
define("ADVENTURE", 2);
define("VIEW", 3);
define("VIEW", 3);
define("VIEWER", 3);