mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Refactored EntityAPI and TileEntityAPI
This commit is contained in:
parent
588379a430
commit
5bba03eb09
5 changed files with 18 additions and 38 deletions
|
|
@ -79,7 +79,7 @@ class PaintingItem extends Item{
|
|||
"Motive" => $motive[0],
|
||||
);
|
||||
$e = $server->api->entity->add($level, ENTITY_OBJECT, OBJECT_PAINTING, $data);
|
||||
$server->api->entity->spawnToAll($level, $e->eid);
|
||||
$server->api->entity->spawnToAll($e);
|
||||
if(($player->gamemode & 0x01) === 0x00){
|
||||
$player->removeItem($this->getID(), $this->getMetadata(), 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue