mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fixed many bugs!
- Asset issue with Dynamic Valve fixed - Fixed pipes connecting to Dynamic Valves when not part of structure - Fixed stack overflow when rendering valve fluids - Fixed transmitter networks considering pull-based block connections as acceptor connections - Fixed dynamic tanks maintaining a fluid type even when it has been depleted - Fixed "clearIfNecessary()" transmitter calls not working
This commit is contained in:
1 parent
09f1a04764
commit
6f0cf3a166
9 files changed
+118
-108
No files matched your search
@@ -1,8 +1,8 @@
|
||||
package mekanism.common.tile;
|
||||
|
||||
import mekanism.common.content.tank.DynamicFluidTank;
|
||||
import mekanism.common.util.MekanismUtils;
|
||||
import mekanism.common.util.PipeUtils;
|
||||
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
@@ -59,12 +59,18 @@ public class TileEntityDynamicValve extends TileEntityDynamicTank implements IFl
|
||||
@Override
|
||||
public boolean canFill(ForgeDirection from, Fluid fluid)
|
||||
{
|
||||
return true;
|
||||
return ((!worldObj.isRemote && structure != null) || (worldObj.isRemote && clientHasStructure));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canDrain(ForgeDirection from, Fluid fluid)
|
||||
{
|
||||
return true;
|
||||
return ((!worldObj.isRemote && structure != null) || (worldObj.isRemote && clientHasStructure));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName()
|
||||
{
|
||||
return MekanismUtils.localize("gui.dynamicTank");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user