mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Allow infinite fluid barrels to fill pressurized tanks
This commit is contained in:
parent
93f03208fa
commit
879ce28ad9
@ -10,6 +10,7 @@ import org.lwjgl.opengl.GL11;
|
||||
import com.hbm.inventory.fluid.FluidType;
|
||||
import com.hbm.inventory.fluid.Fluids;
|
||||
import com.hbm.inventory.gui.GuiInfoContainer;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.items.machine.IItemFluidIdentifier;
|
||||
import com.hbm.packet.PacketDispatcher;
|
||||
import com.hbm.packet.TEFluidPacket;
|
||||
@ -127,7 +128,9 @@ public class FluidTank {
|
||||
if(slots[in] == null)
|
||||
return false;
|
||||
|
||||
if(pressure != 0)
|
||||
boolean isInfiniteBarrel = slots[in].getItem() == ModItems.fluid_barrel_infinite;
|
||||
|
||||
if(!isInfiniteBarrel && pressure != 0)
|
||||
return false;
|
||||
|
||||
int prev = this.getFill();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user