Add a check to prevent render exception

This commit is contained in:
aidancbrady committed 2016-09-12 16:44:29 -04:00
1 parent b6d5a34121
commit 65fa4967d6
1 file changed
+1 -1
@@ -68,7 +68,7 @@ public class RenderMechanicalPipe extends RenderTransmitterBase<PartMechanicalPi
fluid = pipe.getBuffer() == null ? null : pipe.getBuffer().getFluid();
}
float scale = pipe.currentScale;
float scale = Math.min(pipe.currentScale, 1);
if(scale > 0.01 && fluid != null)
{