Fix more exploits
This commit is contained in:
parent
40b3870061
commit
6a27d51261
1 changed files with 4 additions and 7 deletions
|
|
@ -2537,8 +2537,8 @@ namespace TShockAPI
|
||||||
if (OnLiquidSet(tileX, tileY, amount, type))
|
if (OnLiquidSet(tileX, tileY, amount, type))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (tileX < 0 || tileX >= Main.maxTilesX || tileY < 0 || tileY >= Main.maxTilesY)
|
if (!TShock.Utils.TilePlacementValid(tileX, tileY) || (args.Player.Dead && TShock.Config.PreventDeadModification))
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
if (TShock.CheckIgnores(args.Player))
|
if (TShock.CheckIgnores(args.Player))
|
||||||
{
|
{
|
||||||
|
|
@ -2653,10 +2653,7 @@ namespace TShockAPI
|
||||||
var tileY = args.Data.ReadInt32();
|
var tileY = args.Data.ReadInt32();
|
||||||
if (OnTileKill(tileX, tileY))
|
if (OnTileKill(tileX, tileY))
|
||||||
return true;
|
return true;
|
||||||
if (tileX < 0 || tileX >= Main.maxTilesX || tileY < 0 || tileY >= Main.maxTilesY)
|
if (!TShock.Utils.TilePlacementValid(tileX, tileY) || (args.Player.Dead && TShock.Config.PreventDeadModification))
|
||||||
return false;
|
|
||||||
|
|
||||||
if (args.Player.Dead && TShock.Config.PreventDeadModification)
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (TShock.CheckIgnores(args.Player))
|
if (TShock.CheckIgnores(args.Player))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue