You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The constructor for the mod class is the first code that is run when your mod is loaded.
This is technically wrong because static stuff (the <clinit> method) is run before the constructor. In the MDK that is the MODID, LOGGER and all the DeferredThing fields being filled.
It doesn't change the result much but its still technically wrong 🤓. (also this isn't counting coremodding stuff, but I feel like that can generally be considered a separate part of your mod as sharing anything between them is a major recipe for classloading disaster)
Some parentheses could be added for clarification, like
// The constructor for the mod class is the first code that is run when your mod is loaded (after static blocks and fields are executed)
The text was updated successfully, but these errors were encountered:
MDK/src/main/java/com/example/examplemod/ExampleMod.java
Line 70 in 7e54020
This is technically wrong because static stuff (the
<clinit>
method) is run before the constructor. In the MDK that is the MODID, LOGGER and all the DeferredThing fields being filled.It doesn't change the result much but its still technically wrong 🤓. (also this isn't counting coremodding stuff, but I feel like that can generally be considered a separate part of your mod as sharing anything between them is a major recipe for classloading disaster)
Some parentheses could be added for clarification, like
The text was updated successfully, but these errors were encountered: