Skip to content

Commit

Permalink
Remove minecraft: from loot data resource type logs
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Sep 26, 2024
1 parent 66ee738 commit 983e014
Showing 1 changed file with 1 addition and 1 deletion.
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 = ((ResourceLocation)args[0]).toString().replaceAll("_", " ").replaceFirst("s$", "");
String type = ((ResourceLocation)args[0]).getPath().replaceAll("_", " ").replaceFirst("s$", "");
LoadDiagnostics.error(LOGGER, type, ((ResourceLocation)args[1]).toString(), (String)args[2]);
}
}

0 comments on commit 983e014

Please sign in to comment.