Merge branch 'master' of github.com:TShock/TShock

This commit is contained in:
Maverick Motherfucker 2011-06-06 17:12:05 -07:00
commit 0f01f58c67

View file

@ -215,10 +215,13 @@ namespace TShockAPI
int tileY = Math.Abs(y / 16); int tileY = Math.Abs(y / 16);
if ((Math.Abs(plyX - tileX) > 6) || (Math.Abs(plyY - tileY) > 6)) if ((Math.Abs(plyX - tileX) > 6) || (Math.Abs(plyY - tileY) > 6))
{
TShock.Ban(e.Msg.whoAmI, "Placing impossible to place blocks."); TShock.Ban(e.Msg.whoAmI, "Placing impossible to place blocks.");
Tools.Broadcast(Main.player[e.Msg.whoAmI].name + " was banned for placing impossible to place blocks."); Tools.Broadcast(Main.player[e.Msg.whoAmI].name +
" was banned for placing impossible to place blocks.");
e.Handled = true; e.Handled = true;
} }
}
if (type == 0 || type == 1) if (type == 0 || type == 1)
if (ConfigurationManager.spawnProtect) if (ConfigurationManager.spawnProtect)