Unnecessary return/continue

This commit is contained in:
Sunch 2024-08-17 20:05:28 +08:00
parent e2dae67a1c
commit d3f5386812
5 changed files with 5 additions and 10 deletions

View file

@ -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)

View file

@ -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;