mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Implemented Level::getSafeSpawn()
This commit is contained in:
parent
4a05f04a00
commit
9e337e21d2
5 changed files with 26 additions and 6 deletions
|
|
@ -1651,7 +1651,7 @@ class Player{
|
|||
}
|
||||
$this->craftingItems = array();
|
||||
$this->toCraft = array();
|
||||
if(isset($this->windows[$data["windowid"]]) and $this->windows[$data["windowid"]]->class === TILE_CHEST){
|
||||
/*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,
|
||||
|
|
@ -1659,7 +1659,7 @@ class Player{
|
|||
"case1" => 1,
|
||||
"case2" => 0,
|
||||
));
|
||||
}
|
||||
}*/
|
||||
unset($this->windows[$data["windowid"]]);
|
||||
|
||||
$this->dataPacket(MC_CONTAINER_CLOSE, array(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue