Render defined scale properly
This commit is contained in:
parent
ffd683a3f3
commit
60e2666a29
3 changed files with 4 additions and 1 deletions
|
@ -234,6 +234,8 @@ public class GasNetwork extends DynamicNetwork<IGasHandler, GasNetwork>
|
|||
{
|
||||
super.clientTick();
|
||||
|
||||
gasScale = Math.max(gasScale, definedScale);
|
||||
|
||||
if(didTransfer && gasScale < 1)
|
||||
{
|
||||
gasScale = Math.max(definedScale, Math.min(1, gasScale+0.02F));
|
||||
|
|
|
@ -238,6 +238,8 @@ public class FluidNetwork extends DynamicNetwork<IFluidHandler, FluidNetwork>
|
|||
{
|
||||
super.clientTick();
|
||||
|
||||
fluidScale = Math.max(fluidScale, definedScale);
|
||||
|
||||
if(didTransfer && fluidScale < 1)
|
||||
{
|
||||
fluidScale = Math.max(definedScale, Math.min(1, fluidScale+0.02F));
|
||||
|
|
|
@ -104,7 +104,6 @@ public class PacketTransmitterUpdate implements IMekanismPacket
|
|||
|
||||
if(tileEntity != null)
|
||||
{
|
||||
System.out.println("UPDATE " + gasType + " " + didGasTransfer + " " + scale);
|
||||
((ITransmitter<GasNetwork>)tileEntity).getTransmitterNetwork().refGas = gasType;
|
||||
((ITransmitter<GasNetwork>)tileEntity).getTransmitterNetwork().didTransfer = didGasTransfer;
|
||||
((ITransmitter<GasNetwork>)tileEntity).getTransmitterNetwork().definedScale = scale;
|
||||
|
|
Loading…
Reference in a new issue