Purge "initial vanilla inventory" from playerdata, and pushed it to the SSC config creation if not existing.
This commit is contained in:
parent
2658aa1c6d
commit
8a7aae9143
2 changed files with 14 additions and 12 deletions
|
|
@ -1140,18 +1140,6 @@ namespace TShockAPI
|
|||
{
|
||||
this.inventory[i] = new NetItem();
|
||||
}
|
||||
this.inventory[0].netID = -15;
|
||||
this.inventory[0].stack = 1;
|
||||
if (player.TPlayer.inventory[0] != null && player.TPlayer.inventory[0].netID == -15)
|
||||
this.inventory[0].prefix = player.TPlayer.inventory[0].prefix;
|
||||
this.inventory[1].netID = -13;
|
||||
this.inventory[1].stack = 1;
|
||||
if (player.TPlayer.inventory[1] != null && player.TPlayer.inventory[1].netID == -13)
|
||||
this.inventory[1].prefix = player.TPlayer.inventory[1].prefix;
|
||||
this.inventory[2].netID = -16;
|
||||
this.inventory[2].stack = 1;
|
||||
if (player.TPlayer.inventory[2] != null && player.TPlayer.inventory[2].netID == -16)
|
||||
this.inventory[2].prefix = player.TPlayer.inventory[2].prefix;
|
||||
|
||||
for (int i = 0; i < TShock.ServerSideCharacterConfig.StartingInventory.Count; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue