File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
example/src/main/java/com/example/examplemod Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments