Update GetDataHandlers ExtraValue packet handling to match the network protocol.
Update the validation logic to be accurate: * use pixels and not tiles * allow master mode * use npc position and not player position Cleanup some style inconsistencies in NetHooks_SendData.
This commit is contained in:
parent
0c3242a6f5
commit
fd6913f7df
2 changed files with 39 additions and 9 deletions
|
|
@ -1635,7 +1635,8 @@ namespace TShockAPI
|
|||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
} else if (e.MsgId == PacketTypes.ProjectileNew)
|
||||
}
|
||||
else if (e.MsgId == PacketTypes.ProjectileNew)
|
||||
{
|
||||
if (e.number >= 0 && e.number < Main.projectile.Length)
|
||||
{
|
||||
|
|
@ -1660,7 +1661,6 @@ namespace TShockAPI
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue