mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Update EntityAPI.php
This commit is contained in:
parent
7ea63bdceb
commit
83b7bc4b39
11 changed files with 380 additions and 57 deletions
|
|
@ -32,7 +32,10 @@ class Level{
|
|||
public function close(){
|
||||
$this->__destruct();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AxisAlignedBB $aABB
|
||||
* @return AxisAlignedBB[]
|
||||
*/
|
||||
public function getCubes(AxisAlignedBB $aABB) {
|
||||
$aABBs = [];
|
||||
$x0 = floor($aABB->minX);
|
||||
|
|
@ -61,6 +64,7 @@ class Level{
|
|||
|
||||
return $aABBs;
|
||||
}
|
||||
|
||||
public function __destruct(){
|
||||
if(isset($this->level)){
|
||||
$this->save(false, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue