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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
+ }