From 1741b0c854311a23814731b5acfed6b72e9c75a2 Mon Sep 17 00:00:00 2001 From: ProfessorXZ Date: Sat, 10 Dec 2016 21:22:01 +0100 Subject: [PATCH 1/2] A possible fix for #1337 --- TShockAPI/PlayerData.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/PlayerData.cs b/TShockAPI/PlayerData.cs index 7422bc80..047dbaf1 100644 --- a/TShockAPI/PlayerData.cs +++ b/TShockAPI/PlayerData.cs @@ -179,7 +179,7 @@ namespace TShockAPI { //179-219 var index = i - (NetItem.InventorySlots + NetItem.ArmorSlots + NetItem.DyeSlots - + NetItem.MiscEquipSlots + NetItem.MiscDyeSlots + NetItem.PiggySlots + NetItem.ForgeSlots); + + NetItem.MiscEquipSlots + NetItem.MiscDyeSlots + NetItem.PiggySlots); this.inventory[i] = (NetItem)forge[index]; } else @@ -463,4 +463,4 @@ namespace TShockAPI NetMessage.SendData(39, player.Index, -1, "", 400); } } -} \ No newline at end of file +} From 962fe35fded826e188b8543ff268ae331ea35022 Mon Sep 17 00:00:00 2001 From: ProfessorXZ Date: Sun, 11 Dec 2016 16:44:23 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9cd96f8..9a433825 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Added `/uploadssc [player]` which allows someone to upload SSC data for [player] and store it on the server. Adds `tshock.ssc.upload` and `tshock.ssc.upload.others` permission nodes to match (@DogooFalchion). * Added hardened stone to the whitelist of tiles editable by players (@DogooFalchion). * Added conversion system to send convert old MOTD format into smart text, while preserving initial line starting values to keep byte optimization for background colors Thanks to (@WhiteXZ, @Simon311, and especially @DogooFalchion) for the hard work on this issue. +* Fixed server-sided inventory issues caused by bank3 (@ProfessorXZ) ## TShock 4.3.20 * Security improvement: The auth system is now automatically disabled if a superadmin exists in the database (@Enerdy).