Skip to content

Commit

Permalink
Fix reading recipes used on furnace (#11947)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxplay authored Jan 10, 2025
1 parent 4007171 commit 1b38f28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
+ // Paper start - Validate ResourceLocation
+ final ResourceLocation resourceLocation = ResourceLocation.tryParse(string);
+ if (resourceLocation != null) {
+ this.recipesUsed.put(ResourceKey.create(Registries.RECIPE, resourceLocation), tag.getInt(string));
+ this.recipesUsed.put(ResourceKey.create(Registries.RECIPE, resourceLocation), compound.getInt(string));
+ }
+ // Paper end - Validate ResourceLocation
+ }
Expand Down

0 comments on commit 1b38f28

Please sign in to comment.