mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Fixed some issues related to new indexes
This commit is contained in:
@ -272,9 +272,9 @@ abstract class Door extends Transparent{
|
||||
if($down->getId() === $this->id){
|
||||
$meta = $down->getDamage() ^ 0x04;
|
||||
$this->getLevel()->setBlock($down, Block::get($this->id, $meta), true);
|
||||
$players = $this->getLevel()->getUsingChunk($this->x >> 4, $this->z >> 4);
|
||||
$players = $this->getLevel()->getChunkPlayers($this->x >> 4, $this->z >> 4);
|
||||
if($player instanceof Player){
|
||||
unset($players[$player->getId()]);
|
||||
unset($players[$player->getLoaderId()]);
|
||||
}
|
||||
|
||||
$this->level->addSound(new DoorSound($this));
|
||||
@ -285,9 +285,9 @@ abstract class Door extends Transparent{
|
||||
}else{
|
||||
$this->meta ^= 0x04;
|
||||
$this->getLevel()->setBlock($this, $this, true);
|
||||
$players = $this->getLevel()->getUsingChunk($this->x >> 4, $this->z >> 4);
|
||||
$players = $this->getLevel()->getChunkPlayers($this->x >> 4, $this->z >> 4);
|
||||
if($player instanceof Player){
|
||||
unset($players[$player->getId()]);
|
||||
unset($players[$player->getLoaderId()]);
|
||||
}
|
||||
$this->level->addSound(new DoorSound($this));
|
||||
}
|
||||
|
Reference in New Issue
Block a user