Immutabilize vector3 as it being defensively copied all over already

This commit is contained in:
Vincent Lee committed 2016-06-18 16:11:03 -05:00
1 parent 6c307d16f4
commit cfb368f67e
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;