mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Chest animations for everyone! Woo!
This commit is contained in:
parent
8d408996f4
commit
3374bbcc9e
@ -1609,7 +1609,17 @@ class Player{
|
|||||||
}
|
}
|
||||||
$this->craftingItems = array();
|
$this->craftingItems = array();
|
||||||
$this->toCraft = array();
|
$this->toCraft = array();
|
||||||
|
if(isset($this->windows[$data["windowid"]]) and $this->windows[$data["windowid"]]->class === TILE_CHEST){
|
||||||
|
$this->server->api->player->broadcastPacket($this->server->api->player->getAll($this->level), MC_TILE_EVENT, array(
|
||||||
|
"x" => $this->windows[$data["windowid"]]->x,
|
||||||
|
"y" => $this->windows[$data["windowid"]]->y,
|
||||||
|
"z" => $this->windows[$data["windowid"]]->z,
|
||||||
|
"case1" => 1,
|
||||||
|
"case2" => 0,
|
||||||
|
));
|
||||||
|
}
|
||||||
unset($this->windows[$data["windowid"]]);
|
unset($this->windows[$data["windowid"]]);
|
||||||
|
|
||||||
$this->dataPacket(MC_CONTAINER_CLOSE, array(
|
$this->dataPacket(MC_CONTAINER_CLOSE, array(
|
||||||
"windowid" => $data["windowid"],
|
"windowid" => $data["windowid"],
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user