Fix LunarMonolith toggling

This commit is contained in:
punchready 2023-04-05 06:43:47 +02:00
parent d0409db5fb
commit c309990f94

View file

@ -211,10 +211,14 @@ namespace TShockAPI.Handlers
{ {
if (tile.FrameY < 0 || tile.FrameY > MaxFrameY || tile.FrameY % FrameYStep != 0) if (tile.FrameY < 0 || tile.FrameY > MaxFrameY || tile.FrameY % FrameYStep != 0)
{ {
// this is the only tile type sent in a tile rect where the frame have a different pattern (56, 74, 92 instead of 54, 72, 90)
if (!(TileType == TileID.LunarMonolith && tile.FrameY % FrameYStep == 2))
{
return false; return false;
} }
} }
} }
}
if (Type == MatchType.Removal) if (Type == MatchType.Removal)
{ {
if (tile.Active) if (tile.Active)