mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 15:57:55 +00:00
add fluid bus shift click transfer upgrade card into the slot
This commit is contained in:
1 parent
409e1f2a8d
commit
92e5c4adc7
1 file changed
+12
-1
+12
-1
@@ -18,6 +18,8 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
@@ -41,6 +43,7 @@ public abstract class ContainerFluidConfigurable extends ContainerUpgradeable {
|
||||
|
||||
ItemStack tis = clickSlot.getStack();
|
||||
FluidStack fs = Util.getFluidFromItem(tis);
|
||||
ItemStack itemstack = tis.copy();;
|
||||
if( fs != null )
|
||||
{
|
||||
final AppEngInternalAEInventory inv = this.getFakeFluidInv();
|
||||
@@ -57,9 +60,17 @@ public abstract class ContainerFluidConfigurable extends ContainerUpgradeable {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(!mergeItemStack(itemstack, 0, this.inventorySlots.size(), false)) return null;
|
||||
Slot slot = (Slot) this.inventorySlots.get(idx);
|
||||
if (itemstack.stackSize == 0) {
|
||||
slot.putStack(null);
|
||||
} else {
|
||||
slot.onSlotChanged();
|
||||
}
|
||||
}
|
||||
this.standardDetectAndSendChanges();
|
||||
return null;
|
||||
return itemstack;
|
||||
}
|
||||
|
||||
protected void setupConfig()
|
||||
|
||||
Reference in new issue
Block a user