fix: allow sandpaper to be used in deploying recipe (#7259)

This commit is contained in:
VoidLeech 2025-01-10 18:21:42 +01:00 committed by GitHub
parent fc94c75866
commit d8310a6fb9
Failed to generate hash of commit

View file

@ -551,7 +551,10 @@ public class DeployerBlockEntity extends KineticBlockEntity {
ItemStack heldItemMainhand = player.getMainHandItem(); ItemStack heldItemMainhand = player.getMainHandItem();
if (heldItemMainhand.getItem() instanceof SandPaperItem) { if (heldItemMainhand.getItem() instanceof SandPaperItem) {
sandpaperInv.setItem(0, stack); sandpaperInv.setItem(0, stack);
return checkRecipe(AllRecipeTypes.SANDPAPER_POLISHING, sandpaperInv, level).orElse(null); Optional<? extends Recipe<? extends Container>> polishingRecipe = checkRecipe(AllRecipeTypes.SANDPAPER_POLISHING, sandpaperInv, level);
if (polishingRecipe.isPresent()){
return polishingRecipe.get();
}
} }
recipeInv.setItem(0, stack); recipeInv.setItem(0, stack);