mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
fix of timings(forgot that i changed them)
This commit is contained in:
parent
fd46b1e4f5
commit
c049278a6d
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ class Chicken extends Animal{
|
||||||
function __construct(Level $level, $eid, $class, $type = 0, $data = array()){
|
function __construct(Level $level, $eid, $class, $type = 0, $data = array()){
|
||||||
parent::__construct($level, $eid, $class, $type, $data);
|
parent::__construct($level, $eid, $class, $type, $data);
|
||||||
$server = ServerAPI::request();
|
$server = ServerAPI::request();
|
||||||
$server->schedule(1, array($this, "dropAnEgg"));
|
$server->schedule(mt_rand(0,6000) + 6000, array($this, "dropAnEgg"));
|
||||||
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 4, "generic");
|
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 4, "generic");
|
||||||
$this->update();
|
$this->update();
|
||||||
//$this->setName('Chicken');
|
//$this->setName('Chicken');
|
||||||
|
|
@ -19,7 +19,7 @@ class Chicken extends Animal{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ServerAPI::request()->api->entity->drop(new Position($this->x + 0.5, $this->y, $this->z + 0.5, $this->level), BlockAPI::getItem(EGG,0,1));
|
ServerAPI::request()->api->entity->drop(new Position($this->x + 0.5, $this->y, $this->z + 0.5, $this->level), BlockAPI::getItem(EGG,0,1));
|
||||||
$this->server->schedule(1, array($this, "dropAnEgg"));
|
$this->server->schedule(mt_rand(0,6000) + 6000, array($this, "dropAnEgg"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDrops(){
|
public function getDrops(){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue