mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
bugfixes from main
This commit is contained in:
parent
6db046fef2
commit
e67c0938cc
2 changed files with 6 additions and 8 deletions
|
|
@ -135,8 +135,8 @@ class Entity extends Position
|
||||||
$this->player = $this->data["player"];
|
$this->player = $this->data["player"];
|
||||||
$this->setHealth($this->health, "generic");
|
$this->setHealth($this->health, "generic");
|
||||||
$this->speedModifer = 1;
|
$this->speedModifer = 1;
|
||||||
$this->width = 1.2;
|
$this->width = 1.4;
|
||||||
$this->height = 1.8;
|
$this->height = 1.9;
|
||||||
$this->hasKnockback = true;
|
$this->hasKnockback = true;
|
||||||
$this->hasGravity = true;
|
$this->hasGravity = true;
|
||||||
$this->canBeAttacked = true;
|
$this->canBeAttacked = true;
|
||||||
|
|
|
||||||
|
|
@ -58,13 +58,11 @@ class WheatBlock extends FlowableBlock{
|
||||||
$drops = [];
|
$drops = [];
|
||||||
if($this->meta >= 0x07){
|
if($this->meta >= 0x07){
|
||||||
$drops[] = [WHEAT, 0, 1];
|
$drops[] = [WHEAT, 0, 1];
|
||||||
}else{
|
}
|
||||||
for($i = 0; $i < 3; ++$i){
|
for($i = 0; $i < 3; ++$i){
|
||||||
if(mt_rand(0, 15) <= $this->meta){ //a way from 1.4.7
|
if(mt_rand(0, 15) <= $this->meta){ //a way from 1.4.7
|
||||||
$drops[] = [WHEAT_SEEDS, 0, 1];
|
$drops[] = [WHEAT_SEEDS, 0, 1];
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return $drops;
|
return $drops;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue