mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Avoid more Vector3 mutations using withComponents()
This commit is contained in:
@@ -97,7 +97,7 @@ class Squid extends WaterAnimal{
|
||||
if($this->isAlive()){
|
||||
|
||||
if($this->location->y > 62 and $this->swimDirection !== null){
|
||||
$this->swimDirection->y = -0.5;
|
||||
$this->swimDirection = $this->swimDirection->withComponents(null, -0.5, null);
|
||||
}
|
||||
|
||||
$inWater = $this->isUnderwater();
|
||||
|
Reference in New Issue
Block a user