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.
This commit is contained in:
Lucas Nicodemus 2020-05-22 21:11:37 -07:00
parent 41f35a27df
commit b87f5d0a1b
No known key found for this signature in database
GPG key ID: A07BD9023D1664DB

View file

@ -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;
}