From 1b38f2810ee33c8814a4d0183d389e55e3cfaeef Mon Sep 17 00:00:00 2001 From: Bjarne Koll Date: Fri, 10 Jan 2025 19:49:58 +0100 Subject: [PATCH] Fix reading recipes used on furnace (#11947) --- .../level/block/entity/AbstractFurnaceBlockEntity.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/patches/sources/net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java.patch b/paper-server/patches/sources/net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java.patch index 5907877ed7e9..f8c59e8951f4 100644 --- a/paper-server/patches/sources/net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/level/block/entity/AbstractFurnaceBlockEntity.java.patch @@ -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 + }