mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
farmland weird loop is gone
This commit is contained in:
parent
019e7f26ea
commit
569f81c70c
3 changed files with 32 additions and 70 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue