Spawning items by ID now actually uses the ID properly.

Fixes #1398
This commit is contained in:
White 2017-03-13 11:45:32 +10:30
parent fc7460c7d5
commit 86c180c156

View file

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