From 5e8f553e63e80e5bd15efae65e00fa9a8c67e1a2 Mon Sep 17 00:00:00 2001 From: VoidLeech Date: Thu, 2 Jan 2025 18:28:54 +0100 Subject: [PATCH] fix: allow sandpaper to be used in deploying recipe --- .../content/kinetics/deployer/DeployerBlockEntity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerBlockEntity.java b/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerBlockEntity.java index 4f2ce7023d..c252b0ee0b 100644 --- a/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerBlockEntity.java +++ b/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerBlockEntity.java @@ -551,7 +551,10 @@ public Recipe getRecipe(ItemStack stack) { ItemStack heldItemMainhand = player.getMainHandItem(); if (heldItemMainhand.getItem() instanceof SandPaperItem) { sandpaperInv.setItem(0, stack); - return checkRecipe(AllRecipeTypes.SANDPAPER_POLISHING, sandpaperInv, level).orElse(null); + Optional> polishingRecipe = checkRecipe(AllRecipeTypes.SANDPAPER_POLISHING, sandpaperInv, level); + if (polishingRecipe.isPresent()){ + return polishingRecipe.get(); + } } recipeInv.setItem(0, stack);