From 545709e845ed5be2f37acc71f8994100fd083def Mon Sep 17 00:00:00 2001 From: Zack Piispanen Date: Tue, 1 Oct 2013 00:47:02 -0400 Subject: [PATCH] Fix item drops --- TShockAPI/GetDataHandlers.cs | 6 +++--- TShockAPI/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index fceab444..1022e356 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -918,7 +918,7 @@ namespace TShockAPI /// /// Stacks /// - public byte Stacks { get; set; } + public Int16 Stacks { get; set; } /// /// Prefix of the item /// @@ -937,7 +937,7 @@ namespace TShockAPI /// public static HandlerList 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(); diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index 16f27e6f..adde3519 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -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")]