Fix projectile removal.

This commit is contained in:
Zidonuke 2011-12-29 18:53:27 -05:00
parent be6a5a771b
commit d5affa3ba5
4 changed files with 61 additions and 11 deletions

View file

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