Fix item drops

This commit is contained in:
Zack Piispanen 2013-10-01 00:47:02 -04:00
parent 33e0627f9e
commit 545709e845
2 changed files with 5 additions and 5 deletions

View file

@ -918,7 +918,7 @@ namespace TShockAPI
/// <summary>
/// Stacks
/// </summary>
public byte Stacks { get; set; }
public Int16 Stacks { get; set; }
/// <summary>
/// Prefix of the item
/// </summary>
@ -937,7 +937,7 @@ namespace TShockAPI
/// </summary>
public static HandlerList<ItemDropEventArgs> ItemDrop;
private static bool OnItemDrop(short id, Vector2 pos, Vector2 vel, byte stacks, byte prefix, bool noDelay, short type)
private static bool OnItemDrop(short id, Vector2 pos, Vector2 vel, Int16 stacks, byte prefix, bool noDelay, short type)
{
if (ItemDrop == null)
return false;
@ -2833,7 +2833,7 @@ namespace TShockAPI
var id = args.Data.ReadInt16();
var pos = new Vector2(args.Data.ReadSingle(), args.Data.ReadSingle());
var vel = new Vector2(args.Data.ReadSingle(), args.Data.ReadSingle());
var stacks = args.Data.ReadInt8();
var stacks = args.Data.ReadInt16();
var prefix = args.Data.ReadInt8();
var noDelay = args.Data.ReadBoolean();
var type = args.Data.ReadInt16();

View file

@ -49,5 +49,5 @@ using System.Runtime.InteropServices;
// Build Number
// MMdd of the build
[assembly: AssemblyVersion("4.1.0.0926")]
[assembly: AssemblyFileVersion("4.1.0.0926")]
[assembly: AssemblyVersion("4.2.0.0930")]
[assembly: AssemblyFileVersion("4.1.0.0930")]