fix: vector 2d & 3d's x values being read as int fixed
This commit is contained in:
parent
721d63cf66
commit
54bdcd93b2
@ -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);
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user