Skip to content

Commit

Permalink
fix(command): simulate module not accepting message field
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoodie committed Jun 22, 2020
1 parent 2ec1bb8 commit 391d301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -5,7 +5,7 @@ org.gradle.daemon=false

mod_id=twitchspawn
mod_group=net.programmer.igoodie
mod_version=1.6.1
mod_version=1.6.2

minecraft_version=1.14.4
forge_version=28.0.83
Expand Down
Expand Up @@ -257,7 +257,7 @@ public static int simulateModule(CommandContext<CommandSource> context, String s

} else {
simulatedEvent.actorNickname = nbt.getString("actor").isEmpty() ? "SimulatorDude" : nbt.getString("actor");
simulatedEvent.message = "Simulating a message";
simulatedEvent.message = nbt.contains("message") ? nbt.getString("message") : "Simulating a message";
simulatedEvent.donationAmount = nbt.getDouble("amount");
simulatedEvent.donationCurrency = nbt.getString("currency");
simulatedEvent.subscriptionMonths = nbt.getInt("months");
Expand Down

0 comments on commit 391d301

Please sign in to comment.