mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
Fixed setting more gamemodes
This commit is contained in:
parent
3577667039
commit
bcb76b51f4
@ -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){
|
||||
|
@ -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);
|
Loading…
x
Reference in New Issue
Block a user