Fix workaround message printing twice

This commit is contained in:
embeddedt 2023-05-15 21:04:01 -04:00
parent 32c1baf887
commit 4a0b633970
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -28,7 +28,9 @@ public class BootstrapMixin {
/* for https://github.com/MinecraftForge/MinecraftForge/issues/9505 */
@Inject(method = "bootStrap", at = @At("RETURN"))
private static void doClassloadHack(CallbackInfo ci) {
NetworkConstants.init();
LOGGER.info("Worked around Forge issue #9505");
if(!isBootstrapped) {
NetworkConstants.init();
LOGGER.info("Worked around Forge issue #9505");
}
}
}