mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 06:52:58 +00:00
Immutabilize vector3 as it being defensively copied all over already
This commit is contained in:
28 files changed
+122
-209
No files matched your search
@@ -119,7 +119,7 @@ public class EntityBabylonWeapon extends EntityThrowableCopy {
|
||||
else playerLook = new Vector3(lookat.getBlockPos().getX() + 0.5, lookat.getBlockPos().getY() + 0.5, lookat.getBlockPos().getZ() + 0.5);
|
||||
|
||||
Vector3 thisVec = Vector3.fromEntityCenter(this);
|
||||
Vector3 motionVec = playerLook.sub(thisVec).normalize().multiply(2);
|
||||
Vector3 motionVec = playerLook.subtract(thisVec).normalize().multiply(2);
|
||||
|
||||
x = motionVec.x;
|
||||
y = motionVec.y;
|
||||
|
||||
Reference in new issue
Block a user