From b87f5d0a1bc4706b473875eeb7100df65c2d35f9 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Fri, 22 May 2020 21:11:37 -0700 Subject: [PATCH] Fix probable typo in sundail special perm This check used & instead of && which is technically possible but probably not the right thing to do here. --- TShockAPI/GetDataHandlers.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index e8ffee48..7a6ece8e 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2717,10 +2717,9 @@ namespace TShockAPI return true; } - // typo? type == 3 & !args.... - if (type == 3 & !args.Player.HasPermission(Permissions.usesundial)) + if (type == 3 && !args.Player.HasPermission(Permissions.usesundial)) { - TShock.Log.ConsoleDebug("GetDataHandlers / HandleSpecial rejected enchanted sundial type 3 binary and (warn) {0}", args.Player.Name); + TShock.Log.ConsoleDebug("GetDataHandlers / HandleSpecial rejected enchanted sundial permission {0}", args.Player.Name); args.Player.SendErrorMessage("You do not have permission to use the Enchanted Sundial!"); return true; }