diff --git a/Shared/Network/LiteNetLib/Packers/Vector2DNetPacker.cs b/Shared/Network/LiteNetLib/Packers/Vector2DNetPacker.cs index 4772046..ed5f933 100644 --- a/Shared/Network/LiteNetLib/Packers/Vector2DNetPacker.cs +++ b/Shared/Network/LiteNetLib/Packers/Vector2DNetPacker.cs @@ -1,3 +1,4 @@ + using LiteNetLib.Utils; using Syntriax.Engine.Core; @@ -14,7 +15,7 @@ internal static class Vector2DNetPacker internal static Vector2D Read(NetDataReader reader) { - int x = reader.GetInt(); + float x = reader.GetFloat(); float y = reader.GetFloat(); return new Vector2D(x, y); diff --git a/Shared/Network/LiteNetLib/Packers/Vector3DNetPacker.cs b/Shared/Network/LiteNetLib/Packers/Vector3DNetPacker.cs index 741c290..c75bcce 100644 --- a/Shared/Network/LiteNetLib/Packers/Vector3DNetPacker.cs +++ b/Shared/Network/LiteNetLib/Packers/Vector3DNetPacker.cs @@ -15,7 +15,7 @@ internal static class Vector3DNetPacker internal static Vector3D Read(NetDataReader reader) { - int x = reader.GetInt(); + float x = reader.GetFloat(); float y = reader.GetFloat(); float z = reader.GetFloat();