mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
readded return in reset spawn pos & some fixes to formatting
This commit is contained in:
parent
f74e6e0638
commit
ed4f820ff3
9 changed files with 25 additions and 24 deletions
|
|
@ -1496,7 +1496,7 @@ class Entity extends Position
|
|||
{
|
||||
if($this->class === ENTITY_PLAYER){
|
||||
$this->player->teleport(new Vector3($this->x, $this->y, $this->z), false, false, true, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function moveEntityWithOffset($oX, $oY, $oZ)
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ class Chicken extends Animal{
|
|||
}
|
||||
|
||||
public function fall(){} //chickens have no fall dmg?
|
||||
|
||||
public function dropAnEgg(){
|
||||
|
||||
public function dropAnEgg(){
|
||||
if($this->closed){
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ class Arrow extends Entity{
|
|||
++$this->groundTicks;
|
||||
if($this->groundTicks >= 1200){ //TODO customizeable?
|
||||
$this->close();
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$this->inGround = false;
|
||||
$this->speedX *= lcg_value() * 0.2;
|
||||
|
|
@ -277,4 +277,4 @@ class Arrow extends Entity{
|
|||
$player->dataPacket($pk);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue