From 5bcd37949bea47cd29622fe9262da6c522a9a156 Mon Sep 17 00:00:00 2001 From: Armano den Boef <68127614+Rozen4334@users.noreply.github.com> Date: Mon, 23 Aug 2021 22:58:56 +0200 Subject: [PATCH] Editing the return in HandleSpecial; Fixes #2436. --- TShockAPI/GetDataHandlers.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 3bed28b2..b4307050 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -3240,6 +3240,7 @@ namespace TShockAPI { TShock.Log.ConsoleDebug($"GetDataHandlers / HandleSpecial rejected enchanted sundial permission {args.Player.Name}"); args.Player.SendErrorMessage("You do not have permission to use the Enchanted Sundial."); + return true; } else if (TShock.Config.Settings.ForceTime != "normal") { @@ -3250,8 +3251,8 @@ namespace TShockAPI } else args.Player.SendErrorMessage("You must set ForceTime to normal via config to use the Enchanted Sundial."); + return true; } - return true; } return false;