mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-03-04 06:44:40 +01:00
fix: allow sandpaper to be used in deploying recipe (#7259)
This commit is contained in:
parent
fc94c75866
commit
d8310a6fb9
1 changed files with 4 additions and 1 deletions
|
@ -551,7 +551,10 @@ public class DeployerBlockEntity extends KineticBlockEntity {
|
|||
ItemStack heldItemMainhand = player.getMainHandItem();
|
||||
if (heldItemMainhand.getItem() instanceof SandPaperItem) {
|
||||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue