Fix bug where players cannot place sensors
This commit is contained in:
parent
b9046da5f4
commit
8a518107a0
1 changed files with 9 additions and 0 deletions
|
|
@ -1743,6 +1743,15 @@ namespace TShockAPI
|
||||||
Main.tile[realx, realy].active(false);
|
Main.tile[realx, realy].active(false);
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
// Sensors
|
||||||
|
if(newtile.Type == TileID.LogicSensor && !Main.tile[realx, realy].active())
|
||||||
|
{
|
||||||
|
Main.tile[realx, realy].type = newtile.Type;
|
||||||
|
Main.tile[realx, realy].frameX = newtile.FrameX;
|
||||||
|
Main.tile[realx, realy].frameY = newtile.FrameY;
|
||||||
|
Main.tile[realx, realy].active(true);
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (tile.active() && newtile.Active)
|
if (tile.active() && newtile.Active)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue