You can now dump any tank by shift-clicking its gauge with a gauge dropper

This commit is contained in:
aidancbrady committed 2015-05-28 16:27:06 -04:00
1 parent b6264891f1
commit 917430bf5c
3 files changed
+26 -2

No files matched your search

@@ -51,7 +51,8 @@ public interface ITankManager
((EntityPlayerMP)player).sendContainerAndContentsToPlayer(player.openContainer, player.openContainer.getInventory());
}
else { //Extract gas from dropper
else if(button == 1) //Extract gas from dropper
{
if(dropper.getFluid(stack) != null || gasTank.getNeeded() == 0)
{
return;
@@ -63,6 +64,10 @@ public interface ITankManager
((EntityPlayerMP)player).sendContainerAndContentsToPlayer(player.openContainer, player.openContainer.getInventory());
}
else if(button == 2) //Dump the tank
{
gasTank.setGas(null);
}
}
else if(tank instanceof FluidTank)
{
@@ -87,7 +92,8 @@ public interface ITankManager
((EntityPlayerMP)player).sendContainerAndContentsToPlayer(player.openContainer, player.openContainer.getInventory());
}
else { //Extract fluid from dropper
else if(button == 1) //Extract fluid from dropper
{
if(dropper.getGas(stack) != null || fluidTank.getCapacity()-fluidTank.getFluidAmount() == 0)
{
return;
@@ -99,6 +105,10 @@ public interface ITankManager
((EntityPlayerMP)player).sendContainerAndContentsToPlayer(player.openContainer, player.openContainer.getInventory());
}
else if(button == 2) //Dump the tank
{
fluidTank.setFluid(null);
}
}
}
}