diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d44b31b..279ec0e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Added Torch God's Favor support in SSC. (@Stealownz) * SendTileSquare is now SendTileRect and can now send rectangles instead of squares. This is a breaking change (@QuiCM) * Destroying protected tiles underneath a tile object no longer causes the tile object to disappear for the client (@QuiCM) +* 'RegionProtectGemLocks' config option now works correctly. Gems can now be placed in Gem Locks while this option is enabled (@QuiCM) ## TShock 4.4.0 (Pre-release 13) * Terraria v1.4.1.1 diff --git a/TShockAPI/RegionHandler.cs b/TShockAPI/RegionHandler.cs index e8828c94..41b8efbb 100644 --- a/TShockAPI/RegionHandler.cs +++ b/TShockAPI/RegionHandler.cs @@ -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; + } } }