mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed #262
This commit is contained in:
parent
68855bdd4f
commit
bb9067acd7
@ -362,9 +362,6 @@ class Player{
|
||||
public function eventHandler($data, $event){
|
||||
switch($event){
|
||||
case "tile.container.slot":
|
||||
if($player === $this){
|
||||
break;
|
||||
}
|
||||
foreach($this->windows as $id => $w){
|
||||
if($w === $data["tile"]){
|
||||
$this->dataPacket(MC_CONTAINER_SET_SLOT, array(
|
||||
@ -650,7 +647,7 @@ class Player{
|
||||
return false;
|
||||
}
|
||||
|
||||
if($this->server->api->dhandle("player.gamemode.change", array("player" => $player, "gamemode" => $gm)) === false){
|
||||
if($this->server->api->dhandle("player.gamemode.change", array("player" => $this, "gamemode" => $gm)) === false){
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1211,7 +1208,7 @@ class Player{
|
||||
}
|
||||
unset($this->windows[$data["windowid"]]);
|
||||
$this->dataPacket(MC_CONTAINER_CLOSE, array(
|
||||
"windowid" => $id,
|
||||
"windowid" => $data["windowid"],
|
||||
));
|
||||
break;
|
||||
case MC_CONTAINER_SET_SLOT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user