Fix item drops
This commit is contained in:
parent
33e0627f9e
commit
545709e845
2 changed files with 5 additions and 5 deletions
|
|
@ -918,7 +918,7 @@ namespace TShockAPI
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Stacks
|
/// Stacks
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public byte Stacks { get; set; }
|
public Int16 Stacks { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Prefix of the item
|
/// Prefix of the item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -937,7 +937,7 @@ namespace TShockAPI
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static HandlerList<ItemDropEventArgs> ItemDrop;
|
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)
|
if (ItemDrop == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -2833,7 +2833,7 @@ namespace TShockAPI
|
||||||
var id = args.Data.ReadInt16();
|
var id = args.Data.ReadInt16();
|
||||||
var pos = new Vector2(args.Data.ReadSingle(), args.Data.ReadSingle());
|
var pos = new Vector2(args.Data.ReadSingle(), args.Data.ReadSingle());
|
||||||
var vel = 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 prefix = args.Data.ReadInt8();
|
||||||
var noDelay = args.Data.ReadBoolean();
|
var noDelay = args.Data.ReadBoolean();
|
||||||
var type = args.Data.ReadInt16();
|
var type = args.Data.ReadInt16();
|
||||||
|
|
|
||||||
|
|
@ -49,5 +49,5 @@ using System.Runtime.InteropServices;
|
||||||
// Build Number
|
// Build Number
|
||||||
// MMdd of the build
|
// MMdd of the build
|
||||||
|
|
||||||
[assembly: AssemblyVersion("4.1.0.0926")]
|
[assembly: AssemblyVersion("4.2.0.0930")]
|
||||||
[assembly: AssemblyFileVersion("4.1.0.0926")]
|
[assembly: AssemblyFileVersion("4.1.0.0930")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue