mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Fix a few bugs
This commit is contained in:
1 parent
8145b31997
commit
89e2279cb9
3 files changed
+8
-2
No files matched your search
@@ -130,6 +130,12 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
|
||||
{
|
||||
ticksSinceCreate++;
|
||||
|
||||
if(transmitters.size() == 0)
|
||||
{
|
||||
deregister();
|
||||
return;
|
||||
}
|
||||
|
||||
if(ticksSinceCreate > 1200)
|
||||
{
|
||||
ticksSinceCreate = 0;
|
||||
|
||||
@@ -66,7 +66,7 @@ public class GuiGasTank extends GuiMekanism
|
||||
if(tileEntity.gasTank.getGas() != null)
|
||||
{
|
||||
int scale = (int)(((double)tileEntity.gasTank.getStored() / tileEntity.MAX_GAS) * 72);
|
||||
drawTexturedModalRect(guiWidth + 65, guiHeight + 17, 176, 0, scale, 20);
|
||||
drawTexturedModalRect(guiWidth + 65, guiHeight + 17, 176, 0, scale, 10);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ public class PartMechanicalPipe extends PartTransmitter<FluidNetwork> implements
|
||||
|
||||
if(container != null)
|
||||
{
|
||||
FluidStack received = container.drain(side, 100, false);
|
||||
FluidStack received = container.drain(side.getOpposite(), 100, false);
|
||||
|
||||
if(received != null && received.amount != 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user