diff --git a/src/resonantinduction/render/RenderPartWire.java b/src/resonantinduction/render/RenderPartWire.java index 8e154643..6d0c0aca 100644 --- a/src/resonantinduction/render/RenderPartWire.java +++ b/src/resonantinduction/render/RenderPartWire.java @@ -46,6 +46,7 @@ public class RenderPartWire public static FloatBuffer specular = BufferUtils.createFloatBuffer(4); public static FloatBuffer zero = BufferUtils.createFloatBuffer(4); public static FloatBuffer defaultAmbient = BufferUtils.createFloatBuffer(4); + public static final RenderPartWire INSTANCE = new RenderPartWire(); static { diff --git a/src/resonantinduction/wire/multipart/PartWire.java b/src/resonantinduction/wire/multipart/PartWire.java index 84ae1766..e09dd86b 100644 --- a/src/resonantinduction/wire/multipart/PartWire.java +++ b/src/resonantinduction/wire/multipart/PartWire.java @@ -54,7 +54,7 @@ public class PartWire extends PartUniversalConductor implements TSlottedPart, JN public static final int DEFAULT_COLOR = 16; public int dyeID = DEFAULT_COLOR; public boolean isInsulated = false; - public static RenderPartWire renderer = new RenderPartWire(); + public static IndexedCuboid6[] sides = new IndexedCuboid6[7]; public static IndexedCuboid6[] insulatedSides = new IndexedCuboid6[7]; public EnumWireMaterial material = EnumWireMaterial.COPPER; @@ -251,7 +251,7 @@ public class PartWire extends PartUniversalConductor implements TSlottedPart, JN public void renderStatic(codechicken.lib.vec.Vector3 pos, LazyLightMatrix olm, int pass) { if (pass == 0) - renderer.renderStatic(this); + RenderPartWire.INSTANCE.renderStatic(this); } @Override @@ -259,7 +259,7 @@ public class PartWire extends PartUniversalConductor implements TSlottedPart, JN public void renderDynamic(codechicken.lib.vec.Vector3 pos, float frame, int pass) { if (ResonantInduction.SHINY_SILVER && this.getMaterial() == EnumWireMaterial.SILVER) - renderer.renderShine(this, pos.x, pos.y, pos.z, frame); + RenderPartWire.INSTANCE.renderShine(this, pos.x, pos.y, pos.z, frame); } @Override