fixed more tasks

This commit is contained in:
GameHerobrine 2024-01-09 10:18:22 +03:00
parent bcf7ef7c79
commit 2636aa985d
15 changed files with 64 additions and 20 deletions

View file

@ -10,6 +10,7 @@ class ItemEntity extends Entity{
{
parent::__construct($level, $eid, $class, $type, $data);
$this->setSize(0.25, 0.25);
$this->yOffset = $this->height / 2;
if(isset($data["item"]) and ($data["item"] instanceof Item)){
$this->meta = $this->data["item"]->getMetadata();
$this->stack = $this->data["item"]->count;