mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Unnecessary return/continue
This commit is contained in:
parent
e2dae67a1c
commit
d3f5386812
5 changed files with 5 additions and 10 deletions
|
|
@ -1496,8 +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);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function moveEntityWithOffset($oX, $oY, $oZ)
|
||||
|
|
|
|||
|
|
@ -139,8 +139,7 @@ class Arrow extends Entity{
|
|||
++$this->groundTicks;
|
||||
if($this->groundTicks >= 1200){ //TODO customizeable?
|
||||
$this->close();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$this->inGround = false;
|
||||
$this->speedX *= lcg_value() * 0.2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue