From c4a0cdb6da24a38c015d45ae778de26975bccc5b Mon Sep 17 00:00:00 2001 From: White Date: Tue, 31 May 2016 12:10:28 +0930 Subject: [PATCH] Properly fix placement of Item IDs 3705 and 3706. Fixes #1189 --- TShockAPI/GetDataHandlers.cs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 7bda9440..ab21a61e 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2067,15 +2067,6 @@ namespace TShockAPI return true; } } - if (action == EditAction.PlaceTile && editData == TileID.FakeContainers) - { - if (selectedItem.type == ItemID.Fake_newchest1 - || selectedItem.type == ItemID.Fake_newchest2) - { - args.Player.SendTileSquare(tileX, tileY, 3); - return true; - } - } } else if (action == EditAction.PlaceWire || action == EditAction.PlaceWire2 || action == EditAction.PlaceWire3) { @@ -2210,6 +2201,14 @@ namespace TShockAPI if (y < 0 || y >= Main.maxTilesY) return true; + //style 52 and 53 are used by ItemID.Fake_newchest1 and ItemID.Fake_newchest2 + //These two items cause localised lag and rendering issues + if (type == TileID.FakeContainers && (style == 52 || style == 53)) + { + args.Player.SendTileSquare(x, y, 4); + return true; + } + if (TShock.TileBans.TileIsBanned(type, args.Player)) { args.Player.SendTileSquare(x, y, 1);