mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
ew
This commit is contained in:
parent
b9e19034a4
commit
755276193c
3 changed files with 7 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ class ItemEntity extends Entity{
|
|||
public function __construct(Level $level, $eid, $class, $type = 0, $data = array())
|
||||
{
|
||||
parent::__construct($level, $eid, $class, $type, $data);
|
||||
$this->setSize(0.25, 0.25);
|
||||
if(isset($data["item"]) and ($data["item"] instanceof Item)){
|
||||
$this->meta = $this->data["item"]->getMetadata();
|
||||
$this->stack = $this->data["item"]->count;
|
||||
|
|
@ -18,7 +19,6 @@ class ItemEntity extends Entity{
|
|||
}
|
||||
$this->hasGravity = true;
|
||||
$this->setHealth(5, "generic");
|
||||
$this->setSize(0.25, 0.25);
|
||||
$this->gravity = 0.04;
|
||||
$this->delayBeforePickup = 20;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue