Fix paint permission check
This commit is contained in:
parent
4290d0af1a
commit
6e4b6e1f5e
1 changed files with 1 additions and 1 deletions
|
|
@ -685,7 +685,7 @@ namespace TShockAPI
|
|||
/// <returns>True if they can paint.</returns>
|
||||
public bool HasPaintPermission(int x, int y)
|
||||
{
|
||||
return HasBuildPermission(x, y) || HasPermission(Permissions.canpaint);
|
||||
return HasBuildPermission(x, y) && HasPermission(Permissions.canpaint);
|
||||
}
|
||||
|
||||
/// <summary>Checks if a player can place ice, and if they can, tracks ice placements and removals.</summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue