summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Command.cs
diff options
context:
space:
mode:
Diffstat (limited to 'StardewModdingAPI/Command.cs')
-rw-r--r--StardewModdingAPI/Command.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/StardewModdingAPI/Command.cs b/StardewModdingAPI/Command.cs
index c65e8122..f0162a4d 100644
--- a/StardewModdingAPI/Command.cs
+++ b/StardewModdingAPI/Command.cs
@@ -14,8 +14,7 @@ namespace StardewModdingAPI
public String CommandDesc;
public String[] CommandArgs;
public String[] CalledArgs;
- public delegate void CommandFireHandler(Command cmd);
- public event CommandFireHandler CommandFired;
+ public event EventHandler<EventArgsCommand> CommandFired;
/// <summary>
/// Calls the specified command. (It runs the command)
@@ -105,7 +104,7 @@ namespace StardewModdingAPI
Program.LogError("Command failed to fire because it's fire event is null: " + CommandName);
return;
}
- CommandFired.Invoke(this);
+ CommandFired.Invoke(this, null);
}
}
}