Sandgun and Dirt Rod no longer triggers a Impossible to place block.
This commit is contained in:
parent
5dfc4f6e60
commit
d620493d7b
1 changed files with 6 additions and 3 deletions
|
|
@ -206,11 +206,14 @@ namespace TShockAPI
|
||||||
int tileY = Math.Abs(y);
|
int tileY = Math.Abs(y);
|
||||||
|
|
||||||
if (ConfigurationManager.RangeChecks && ((Math.Abs(plyX - tileX) > 32) || (Math.Abs(plyY - tileY) > 32)))
|
if (ConfigurationManager.RangeChecks && ((Math.Abs(plyX - tileX) > 32) || (Math.Abs(plyY - tileY) > 32)))
|
||||||
|
{
|
||||||
|
if (!(type == 1 && ((tiletype == 0 && args.Player.TPlayer.selectedItem == 114) || (tiletype == 53 && args.Player.TPlayer.selectedItem == 266))))
|
||||||
{
|
{
|
||||||
Log.Debug(string.Format("TilePlaced(PlyXY:{0}_{1}, TileXY:{2}_{3}, Result:{4}_{5}, Type:{6})",
|
Log.Debug(string.Format("TilePlaced(PlyXY:{0}_{1}, TileXY:{2}_{3}, Result:{4}_{5}, Type:{6})",
|
||||||
plyX, plyY, tileX, tileY, Math.Abs(plyX - tileX), Math.Abs(plyY - tileY), tiletype));
|
plyX, plyY, tileX, tileY, Math.Abs(plyX - tileX), Math.Abs(plyY - tileY), tiletype));
|
||||||
return Tools.HandleGriefer(args.Player, "Placing impossible to place blocks.");
|
return Tools.HandleGriefer(args.Player, "Placing impossible to place blocks.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (tiletype == 48 && !args.Player.Group.HasPermission("canspike"))
|
if (tiletype == 48 && !args.Player.Group.HasPermission("canspike"))
|
||||||
{
|
{
|
||||||
args.Player.SendMessage("You do not have permission to place spikes.", Color.Red);
|
args.Player.SendMessage("You do not have permission to place spikes.", Color.Red);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue