Fix LunarMonolith toggling
This commit is contained in:
parent
d0409db5fb
commit
c309990f94
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue