From 86c180c1566aedf79e177838b76b6e07c56cb258 Mon Sep 17 00:00:00 2001 From: White Date: Mon, 13 Mar 2017 11:45:32 +1030 Subject: [PATCH] Spawning items by ID now actually uses the ID properly. Fixes #1398 --- TShockAPI/TSPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index c6fb7093..bf9ee9d6 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -896,7 +896,7 @@ namespace TShockAPI int itemid = Item.NewItem((int) X, (int) Y, width, height, type, stack, true, prefix, true); // This is for special pickaxe/hammers/swords etc - Main.item[itemid].SetDefaults(name); + Main.item[itemid].netDefaults(type); // The set default overrides the wet and stack set by NewItem Main.item[itemid].wet = Collision.WetCollision(Main.item[itemid].position, Main.item[itemid].width, Main.item[itemid].height);