diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2023-10-03 06:15:40 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 21:15:40 +0200 |
commit | f877ce10737f657fadab950d7fc7f5aee9e53d6c (patch) | |
tree | a6763fde1670cdbfd1b4dea1de13d93f672b2835 /src/main/kotlin/io | |
parent | f402113f950150236108207cb566bd627f7257d3 (diff) | |
download | NotEnoughUpdates-f877ce10737f657fadab950d7fc7f5aee9e53d6c.tar.gz NotEnoughUpdates-f877ce10737f657fadab950d7fc7f5aee9e53d6c.tar.bz2 NotEnoughUpdates-f877ce10737f657fadab950d7fc7f5aee9e53d6c.zip |
Add game directory to crash reports (#847)
* added /neudevtest crash
* Add game directory to crash reports
Diffstat (limited to 'src/main/kotlin/io')
-rw-r--r-- | src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt index e138b512..cf55416b 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt @@ -265,6 +265,16 @@ class DevTestCommand { NotEnoughUpdates.INSTANCE.config.hidden.customUserAgent = null } }.withHelp("Reset the custom user agent") + thenLiteral("crash") { + thenExecute { + throw object : Error("L") { + @Override + fun printStackTrace() { + throw Error("L") + } + } + } + }.withHelp("Crash the game") } hook.beforeCommand = Predicate { if (!canPlayerExecute(it.context.source)) { |