Properly fix placement of Item IDs 3705 and 3706. Fixes #1189
This commit is contained in:
parent
0c49106b9c
commit
c4a0cdb6da
1 changed files with 8 additions and 9 deletions
|
|
@ -2067,15 +2067,6 @@ namespace TShockAPI
|
||||||
return true;
|
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)
|
else if (action == EditAction.PlaceWire || action == EditAction.PlaceWire2 || action == EditAction.PlaceWire3)
|
||||||
{
|
{
|
||||||
|
|
@ -2210,6 +2201,14 @@ namespace TShockAPI
|
||||||
if (y < 0 || y >= Main.maxTilesY)
|
if (y < 0 || y >= Main.maxTilesY)
|
||||||
return true;
|
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))
|
if (TShock.TileBans.TileIsBanned(type, args.Player))
|
||||||
{
|
{
|
||||||
args.Player.SendTileSquare(x, y, 1);
|
args.Player.SendTileSquare(x, y, 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue