mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
initial tileentity rewrite, added missing furnace recipe
This commit is contained in:
parent
8f1850f198
commit
929b5bab36
13 changed files with 600 additions and 545 deletions
|
|
@ -190,8 +190,8 @@ class EntityAPI{
|
|||
public function addRaw(Entity $e){
|
||||
$eid = $e->eid;
|
||||
$this->entities[$eid] = $e;
|
||||
$cX = (int)$this->entities[$eid]->x >> 4;
|
||||
$cZ = (int)$this->entities[$eid]->z >> 4;
|
||||
$cX = floor($this->entities[$eid]->x >> 4);
|
||||
$cZ = floor($this->entities[$eid]->z >> 4);
|
||||
$e->level->entityListPositioned["$cX $cZ"][$eid] = $eid;
|
||||
$e->level->entityList[$eid] = &$this->entities[$eid];
|
||||
$this->server->handle("entity.add", $this->entities[$eid]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue