Make gem locks work properly. Closes #2140 and #2036

This commit is contained in:
Chris 2020-11-13 19:04:53 +10:30
parent db10bf22e7
commit 4802ebed91
2 changed files with 5 additions and 1 deletions

View file

@ -57,7 +57,10 @@ namespace TShockAPI
{
if (TShock.Config.RegionProtectGemLocks)
{
e.Handled = true;
if (!_regionManager.CanBuild(e.X, e.Y, e.Player))
{
e.Handled = true;
}
}
}