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:
parent
41f35a27df
commit
b87f5d0a1b
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue