diff --git a/src/entity/ai/MobController.php b/src/entity/ai/MobController.php index fd6d772e..05eb3a9d 100644 --- a/src/entity/ai/MobController.php +++ b/src/entity/ai/MobController.php @@ -168,18 +168,18 @@ class MobController /* Some stuff for pathfinder - nc doesnt have it now * float var11 = MathHelper.wrapAngleTo180_float(this.entity.rotationYawHead - this.entity.renderYawOffset); - if (!this.entity.getNavigator().noPath()) - { - if (var11 < -75.0F) - { - this.entity.rotationYawHead = this.entity.renderYawOffset - 75.0F; - } + if (!this.entity.getNavigator().noPath()) + { + if (var11 < -75.0F) + { + this.entity.rotationYawHead = this.entity.renderYawOffset - 75.0F; + } - if (var11 > 75.0F) - { - this.entity.rotationYawHead = this.entity.renderYawOffset + 75.0F; - } - } + if (var11 > 75.0F) + { + this.entity.rotationYawHead = this.entity.renderYawOffset + 75.0F; + } + } */ //$this->entity->lastHeadYaw = $this->entity->headYaw; diff --git a/src/entity/object/Painting.php b/src/entity/object/Painting.php index 21f30927..9b2aa8b5 100644 --- a/src/entity/object/Painting.php +++ b/src/entity/object/Painting.php @@ -43,9 +43,9 @@ class Painting extends Entity{ public $counter = 0; public function update($now){ - if($this->closed === true){ - return false; - } + if($this->closed === true){ + return false; + } if(++$this->counter >= 100){ $this->counter = 0;