mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
Add a check to prevent render exception
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user