diff --git a/src/main/java/li/cil/tis3d/common/module/ExecutionModule.java b/src/main/java/li/cil/tis3d/common/module/ExecutionModule.java index 65a9a4f9..f81d4bc7 100644 --- a/src/main/java/li/cil/tis3d/common/module/ExecutionModule.java +++ b/src/main/java/li/cil/tis3d/common/module/ExecutionModule.java @@ -64,12 +64,15 @@ private enum State { WAIT } - private static final Identifier[] STATE_LOCATIONS = new Identifier[]{ - Textures.LOCATION_OVERLAY_MODULE_EXECUTION_IDLE, - Textures.LOCATION_OVERLAY_MODULE_EXECUTION_ERROR, - Textures.LOCATION_OVERLAY_MODULE_EXECUTION_RUNNING, - Textures.LOCATION_OVERLAY_MODULE_EXECUTION_WAITING - }; + @Environment(EnvType.CLIENT) + private static final class RenderData { + static final Identifier[] STATE_LOCATIONS = new Identifier[]{ + Textures.LOCATION_OVERLAY_MODULE_EXECUTION_IDLE, + Textures.LOCATION_OVERLAY_MODULE_EXECUTION_ERROR, + Textures.LOCATION_OVERLAY_MODULE_EXECUTION_RUNNING, + Textures.LOCATION_OVERLAY_MODULE_EXECUTION_WAITING + }; + } // NBT tag names. private static final String TAG_STATE = "state"; @@ -245,7 +248,7 @@ public void render(final BlockEntityRenderDispatcher rendererDispatcher, final f rotateForRendering(matrices); // Draw status texture. - final Sprite baseSprite = RenderUtil.getSprite(STATE_LOCATIONS[state.ordinal()]); + final Sprite baseSprite = RenderUtil.getSprite(RenderData.STATE_LOCATIONS[state.ordinal()]); final VertexConsumer vc = vcp.getBuffer(RenderLayer.getCutoutMipped()); RenderUtil.drawQuad(baseSprite, matrices.peek(), vc, RenderUtil.maxLight, overlay);