Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Build/SignCommands.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion SignCommands/scMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace SignCommands {
//TODO: Add infinite signs support & Global cooldowns
[ApiVersion(1, 22)]
[ApiVersion(1, 26)]
public class SignCommands : TerrariaPlugin {
public override string Name {
get { return "Sign Commands"; }
Expand Down
6 changes: 1 addition & 5 deletions SignCommands/scUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ public static class ScUtils
/// <returns></returns>
public static bool CanCreate(TSPlayer player, ScSign sign)
{
if (sign.commands.Count == 0) return true;

var fails = sign.commands.Count(cmd => !cmd.Value.CanRun(player));

return fails != sign.commands.Values.Count;
return sign.commands.All(cmd => cmd.Value.CanRun(player));
}

public static bool CanEdit(TSPlayer player, ScSign sign)
Expand Down