Skip to content

Commit f45088e

Browse files
authored
Update ExampleMod.java
1 parent 7fe5e4c commit f45088e

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

example/src/main/java/com/example/examplemod/ExampleMod.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ public ExampleMod(IEventBus modEventBus, ModContainer modContainer)
9494

9595
// Register our mod's ModConfigSpec so that FML can create and load the config file for us
9696
modContainer.registerConfig(ModConfig.Type.COMMON, Config.SPEC);
97+
98+
GLCapabilities caps = GL.createCapabilities();
99+
LOGGER.info("GL_ARB_compute_shader: {}", caps.GL_ARB_compute_shader);
97100
}
98101

99102
private void commonSetup(final FMLCommonSetupEvent event)
@@ -131,18 +134,6 @@ public static class ClientModEvents
131134
@SubscribeEvent
132135
public static void onClientSetup(FMLClientSetupEvent event)
133136
{
134-
// Some client setup code
135-
LOGGER.info("HELLO FROM CLIENT SETUP");
136-
LOGGER.info("MINECRAFT NAME >> {}", Minecraft.getInstance().getUser().getName());
137-
138-
event.enqueueWork(() -> {
139-
try {
140-
GLCapabilities caps = GL.createCapabilities();
141-
LOGGER.info("GL_ARB_compute_shader: {}", caps.GL_ARB_compute_shader);
142-
} finally {
143-
System.exit(0);
144-
}
145-
});
146137
}
147138
}
148139
}

0 commit comments

Comments
 (0)