Fixed corrupt packets caused by invalid tile IDs
This commit is contained in:
parent
1316c71a4c
commit
65c061383e
2 changed files with 7 additions and 0 deletions
|
|
@ -1907,6 +1907,12 @@ namespace TShockAPI
|
|||
|
||||
var style = args.Data.ReadInt8();
|
||||
|
||||
if (editData < 0)
|
||||
{
|
||||
args.Player.SendTileSquare(tileX, tileY, 4);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (OnTileEdit(args.Player, tileX, tileY, action, type, editData, style))
|
||||
return true;
|
||||
if (!TShock.Utils.TilePlacementValid(tileX, tileY))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue