mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Fixed CPU leak
This commit is contained in:
@ -197,7 +197,7 @@ class Chest extends Spawnable implements InventoryHolder, Container{
|
||||
*/
|
||||
public function getPair(){
|
||||
if($this->isPaired()){
|
||||
$tile = $this->getLevel()->getTile(Vector3::createVector((int) $this->namedtag["pairx"], $this->y, (int) $this->namedtag["pairz"]));
|
||||
$tile = $this->getLevel()->getTile(new Vector3((int) $this->namedtag["pairx"], $this->y, (int) $this->namedtag["pairz"]));
|
||||
if($tile instanceof Chest){
|
||||
return $tile;
|
||||
}
|
||||
|
Reference in New Issue
Block a user