mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 11:16:57 +00:00
Squid: fix spammy rotation in enclosed spaces
this bug was caused by 2f3c77c68a
. It looks unrelated to the commit title, so it may have been committed by mistake.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user