Fix reading recipes used on furnace (#11947)

This commit is contained in:
Bjarne Koll
2025-01-10 19:49:58 +01:00
committed by GitHub
parent 400717174e
commit 1b38f2810e

View File

@@ -55,7 +55,7 @@
+ // Paper start - Validate ResourceLocation + // Paper start - Validate ResourceLocation
+ final ResourceLocation resourceLocation = ResourceLocation.tryParse(string); + final ResourceLocation resourceLocation = ResourceLocation.tryParse(string);
+ if (resourceLocation != null) { + 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 + // Paper end - Validate ResourceLocation
+ } + }