From 32ad9d0c1ac7dac5eca221f38b604dc70a331b15 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 22 Oct 2019 22:50:35 +0100 Subject: [PATCH] Squid: fix spammy rotation in enclosed spaces this bug was caused by 2f3c77c68a0d9e0fdfb0eb69bd44344f4c8d028d. It looks unrelated to the commit title, so it may have been committed by mistake. --- src/pocketmine/entity/Squid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/Squid.php b/src/pocketmine/entity/Squid.php index 8592821af..abce81095 100644 --- a/src/pocketmine/entity/Squid.php +++ b/src/pocketmine/entity/Squid.php @@ -82,7 +82,7 @@ class Squid extends WaterAnimal{ return false; } - if(++$this->switchDirectionTicker === 100 or $this->isCollided){ + if(++$this->switchDirectionTicker === 100){ $this->switchDirectionTicker = 0; if(mt_rand(0, 100) < 50){ $this->swimDirection = null;