diff --git a/docs/porting.md b/docs/porting.md index 4d63968..6a97a9b 100644 --- a/docs/porting.md +++ b/docs/porting.md @@ -38,7 +38,7 @@ After all these preparations nothing should be in the way of porting the mod, th Good approach is to start working with smaller things first, building up your confidence in how the mod works and gradually approaching more complex stuff, here is a general algorithm: 1. Begin with fixing moved/renamed things by deleting all bad imports and with help of the IDE re-import equivalents if present. - Intelij IDEA has settings for unambiguous auto-import and import optimization on the fly, which can greatly speedup the process. Just pay attention to what is actually imported. + IntelliJ IDEA has settings for unambiguous auto-import and import optimization on the fly, which can greatly speedup the process. Just pay attention to what is actually imported. 2. Remove all nonworking code which is not easily fixable (e.g., class only introduced in newer forge) and provide stubs in its place. For example, replace reference to method of non existing class with your method in your class, it can have an empty body and mocked return so the code can compile and run without issues. Do not forget to track all things you've stubbed, if you are working on port alone - TODOs should be sufficient (most IDEs have a built in TODO browser). diff --git a/gradle.properties b/gradle.properties index f383423..9451325 100644 --- a/gradle.properties +++ b/gradle.properties @@ -28,12 +28,12 @@ remoteMappings = https://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/con # Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty developmentEnvironmentUserName = Developer -# Enables using modern java syntax (up to version 17) via Jabel, while still targetting JVM 8. +# Enables using modern java syntax (up to version 17) via Jabel, while still targeting JVM 8. # See https://github.com/bsideup/jabel for details on how this works. enableModernJavaSyntax = true # Enables injecting missing generics into the decompiled source code for a better coding experience -# Turns most publically visible List, Map, etc. into proper List, Map types +# Turns most publicly visible List, Map, etc. into proper List, Map types enableGenericInjection = false # Generate a class with String fields for the mod id, name, version and group name named with the fields below diff --git a/src/main/java/com/myname/mymodid/ClientProxy.java b/src/main/java/com/myname/mymodid/ClientProxy.java index 45a04dd..ea70aa1 100644 --- a/src/main/java/com/myname/mymodid/ClientProxy.java +++ b/src/main/java/com/myname/mymodid/ClientProxy.java @@ -3,6 +3,6 @@ package com.myname.mymodid; public class ClientProxy extends CommonProxy { // Override CommonProxy methods here, if you want a different behaviour on the client (e.g. registering renders). - // Don't forget to call the super methods aswell. + // Don't forget to call the super methods as well. }