fix: vector 2d & 3d's x values being read as int fixed

This commit is contained in:
Syntriax 2025-05-18 00:48:11 +03:00
parent 721d63cf66
commit 54bdcd93b2
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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();