mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Cookie is making me work for my lunch
This commit is contained in:
parent
affa3af06c
commit
82e141cf09
@ -38,8 +38,8 @@ abstract class AbstractSmeltery extends MultiBlockMachine {
|
||||
|
||||
@Override
|
||||
public void onInteract(Player p, Block b) {
|
||||
Block dispBlock = b.getRelative(BlockFace.DOWN);
|
||||
BlockState state = PaperLib.getBlockState(dispBlock, false).getState();
|
||||
Block possibleDispenser = b.getRelative(BlockFace.DOWN);
|
||||
BlockState state = PaperLib.getBlockState(possibleDispenser, false).getState();
|
||||
|
||||
if (state instanceof Dispenser dispenser) {
|
||||
Inventory inv = dispenser.getInventory();
|
||||
@ -50,7 +50,7 @@ abstract class AbstractSmeltery extends MultiBlockMachine {
|
||||
ItemStack output = RecipeType.getRecipeOutputList(this, inputs.get(i)).clone();
|
||||
|
||||
if (SlimefunUtils.canPlayerUseItem(p, output, true)) {
|
||||
Inventory outputInv = findOutputInventory(output, dispBlock, inv);
|
||||
Inventory outputInv = findOutputInventory(output, possibleDispenser, inv);
|
||||
|
||||
if (outputInv != null) {
|
||||
craft(p, b, inv, inputs.get(i), output, outputInv);
|
||||
|
Loading…
Reference in New Issue
Block a user