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