farmland weird loop is gone

This commit is contained in:
GameHerobrine 2022-12-12 13:54:37 +03:00
parent 019e7f26ea
commit 569f81c70c
3 changed files with 32 additions and 70 deletions

View file

@ -400,9 +400,6 @@ class Entity extends Position
$endY = $startY + 2;
$endZ = $startZ + 2;
$waterDone = false;
if($this->isPlayer()){
}
if($this->isPlayer()){
for($y = $startY; $y <= $endY; ++ $y){
for($x = $startX; $x <= $endX; ++ $x){
@ -1318,7 +1315,7 @@ class Entity extends Position
public function isPlayer()
{
return $this->player instanceof Player;
return isset($this->player) && $this->player instanceof Player;
}
public function sendMoveUpdate()