Fix projectile removal.
This commit is contained in:
parent
be6a5a771b
commit
d5affa3ba5
4 changed files with 61 additions and 11 deletions
|
|
@ -281,6 +281,20 @@ namespace TShockAPI
|
|||
}
|
||||
}
|
||||
|
||||
public void RemoveProjectile(int index, int owner)
|
||||
{
|
||||
using (var ms = new MemoryStream())
|
||||
{
|
||||
var msg = new ProjectileRemoveMsg()
|
||||
{
|
||||
Index = (short)index,
|
||||
Owner = (byte)owner
|
||||
};
|
||||
msg.PackFull(ms);
|
||||
SendRawData(ms.ToArray());
|
||||
}
|
||||
}
|
||||
|
||||
public virtual bool SendTileSquare(int x, int y, int size = 10)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue