Skip to content

Commit

Permalink
Fix crash in LootDataTypeMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Jun 14, 2024
1 parent 804b057 commit 66ee738
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ minecraft_version=1.21
loader_version=0.15.11

# Mod Properties
mod_version=1.8.0-beta2
mod_version=1.8.0-beta3
maven_group=io.github.misode
archives_base_name=packtest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class LootDataTypeMixin {

@WrapOperation(method = "method_53267", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;error(Ljava/lang/String;[Ljava/lang/Object;)V", remap = false))
private void deserialize(Logger logger, String message, Object[] args, Operation<Void> original) {
String type = ((String)args[0]).replaceAll("_", " ").replaceFirst("s$", "");
String type = ((ResourceLocation)args[0]).toString().replaceAll("_", " ").replaceFirst("s$", "");
LoadDiagnostics.error(LOGGER, type, ((ResourceLocation)args[1]).toString(), (String)args[2]);
}
}

0 comments on commit 66ee738

Please sign in to comment.