fix placeholder read/writes

This commit is contained in:
Mister_Nebula 2021-11-26 19:44:20 +00:00
parent 666e4585d7
commit 686a65e31a
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ namespace QSB.Utility.VariableSync
{
if (FloatToSync == null)
{
writer.Write(0f);
writer.Write(false);
}
else
{
@ -22,7 +22,7 @@ namespace QSB.Utility.VariableSync
{
if (FloatToSync == null)
{
writer.ReadSingle();
writer.ReadBoolean();
}
else
{

View File

@ -11,7 +11,7 @@ namespace QSB.Utility.VariableSync
{
if (FloatToSync == null)
{
writer.Write(0f);
writer.Write(Vector3.zero);
}
else
{
@ -23,7 +23,7 @@ namespace QSB.Utility.VariableSync
{
if (FloatToSync == null)
{
writer.ReadSingle();
writer.ReadVector3();
}
else
{