Skip to content

Commit 8526a53

Browse files
Fix all reports having ID 0 making /reports delete not work. (Thanks 123DMWM)
1 parent b5d53c7 commit 8526a53

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

fCraft/Commands/ChatCommands.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@ private static void reportHandler(Player player, CommandReader cmd) {
611611
Category = CommandCategory.New | CommandCategory.Chat,
612612
Usage = "/Reports [option] {args}",
613613
Help = "Use this command to list/remove reports from players",
614-
615614
Handler = ReportsHandler
616615
};
617616

fCraft/Player/Report.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public static void LoadAll() {
6969

7070
string[] data = File.ReadAllLines(filename);
7171
Report report = new Report();
72+
report.Id = id;
7273
report.Sender = data[0];
7374
report.Message = data[2];
7475

0 commit comments

Comments
 (0)