mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +01:00
Fixed Double Furnace not shift-clicking right Items
This commit is contained in:
parent
232210940f
commit
e182ce87c7
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
package ellpeck.actuallyadditions.inventory;
|
||||
|
||||
import ellpeck.actuallyadditions.inventory.slot.SlotOutput;
|
||||
import ellpeck.actuallyadditions.recipe.CrusherRecipeManualRegistry;
|
||||
import ellpeck.actuallyadditions.tile.TileEntityBase;
|
||||
import ellpeck.actuallyadditions.tile.TileEntityFurnaceDouble;
|
||||
import invtweaks.api.container.InventoryContainer;
|
||||
|
@ -10,6 +9,7 @@ import net.minecraft.entity.player.InventoryPlayer;
|
|||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.FurnaceRecipes;
|
||||
|
||||
@InventoryContainer
|
||||
public class ContainerFurnaceDouble extends Container{
|
||||
|
@ -60,7 +60,7 @@ public class ContainerFurnaceDouble extends Container{
|
|||
//Other Slots in Inventory excluded
|
||||
else if(slot >= inventoryStart){
|
||||
//Shift from Inventory
|
||||
if(CrusherRecipeManualRegistry.getOutput(newStack, false) != null){
|
||||
if(FurnaceRecipes.smelting().getSmeltingResult(newStack) != null){
|
||||
if(!this.mergeItemStack(newStack, TileEntityFurnaceDouble.SLOT_INPUT_1, TileEntityFurnaceDouble.SLOT_INPUT_1+1, false)){
|
||||
if(!this.mergeItemStack(newStack, TileEntityFurnaceDouble.SLOT_INPUT_2, TileEntityFurnaceDouble.SLOT_INPUT_2+1, false)) return null;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ import net.minecraft.world.World;
|
|||
|
||||
public class ItemWaterRemovalRing extends ItemEnergy implements INameableItem{
|
||||
|
||||
private static final int RANGE = 2;
|
||||
private static final int RANGE = 3;
|
||||
private static final int ENERGY_USED_PER_BLOCK = 30;
|
||||
|
||||
public ItemWaterRemovalRing(){
|
||||
|
|
Loading…
Reference in a new issue