mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-01-26 09:31:25 +01:00
fix
This commit is contained in:
parent
8ed7e3b08e
commit
1fe713809c
@ -230,10 +230,10 @@ public class HopHandler {
|
|||||||
hopperState.getInventory().setItem(place, is);
|
hopperState.getInventory().setItem(place, is);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else if (destinationBlock.getType() == Material.FURNACE || destinationBlock.getType() == Material.BURNING_FURNACE) {
|
} else if (destinationBlock.getType() == Material.FURNACE) {
|
||||||
FurnaceInventory furnaceInventory = (FurnaceInventory) outputContainer.getInventory();
|
FurnaceInventory furnaceInventory = (FurnaceInventory) outputContainer.getInventory();
|
||||||
|
|
||||||
boolean isFuel = Methods.isFuel(item.getType());
|
boolean isFuel = item.getType().isFuel();
|
||||||
ItemStack output = isFuel ? furnaceInventory.getFuel() : furnaceInventory.getSmelting();
|
ItemStack output = isFuel ? furnaceInventory.getFuel() : furnaceInventory.getSmelting();
|
||||||
if (output != null && !output.isSimilar(newItem)) return false;
|
if (output != null && !output.isSimilar(newItem)) return false;
|
||||||
int maxSize = newItem.getMaxStackSize();
|
int maxSize = newItem.getMaxStackSize();
|
||||||
|
Loading…
Reference in New Issue
Block a user