aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
authorthedarkcolour <30441001+thedarkcolour@users.noreply.github.com>2020-08-17 14:36:23 -0700
committerthedarkcolour <30441001+thedarkcolour@users.noreply.github.com>2020-08-17 14:36:23 -0700
commitf08c792c00cce1e01282d932ea8ad842a12bf29c (patch)
tree09ee8f4ed14a9d3685ee6f784b208865d73ba12b /src/main/kotlin
parent5d89ffe924a98aa03d2871ad39fc60904be9f80b (diff)
downloadKotlinForForge-f08c792c00cce1e01282d932ea8ad842a12bf29c.tar.gz
KotlinForForge-f08c792c00cce1e01282d932ea8ad842a12bf29c.tar.bz2
KotlinForForge-f08c792c00cce1e01282d932ea8ad842a12bf29c.zip
Update to Kotlin for Forge 1.4.1
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/thedarkcolour/kotlinforforge/KotlinForForge.kt4
-rw-r--r--src/main/kotlin/thedarkcolour/kotlinforforge/forge/KDeferredRegister.kt2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/thedarkcolour/kotlinforforge/KotlinForForge.kt b/src/main/kotlin/thedarkcolour/kotlinforforge/KotlinForForge.kt
index eeaaef4..237c445 100644
--- a/src/main/kotlin/thedarkcolour/kotlinforforge/KotlinForForge.kt
+++ b/src/main/kotlin/thedarkcolour/kotlinforforge/KotlinForForge.kt
@@ -5,12 +5,12 @@ import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext
/**
* Set `modLoader` in mods.toml to
- * `"kotlinforforge"` and loaderVersion to `"[1.3,1.4)"`.
+ * `"kotlinforforge"` and loaderVersion to `"[1.4,)"`.
*
* Make sure to use [KotlinModLoadingContext]
* instead of [FMLJavaModLoadingContext].
*
- * For a more thorough example mod,
+ * For a more detailed example mod,
* check out the [KotlinModdingSkeleton repository](https://github.com/thedarkcolour/KotlinModdingSkeleton).
*/
@Mod("kotlinforforge")
diff --git a/src/main/kotlin/thedarkcolour/kotlinforforge/forge/KDeferredRegister.kt b/src/main/kotlin/thedarkcolour/kotlinforforge/forge/KDeferredRegister.kt
index f556d0f..e4f40e9 100644
--- a/src/main/kotlin/thedarkcolour/kotlinforforge/forge/KDeferredRegister.kt
+++ b/src/main/kotlin/thedarkcolour/kotlinforforge/forge/KDeferredRegister.kt
@@ -22,7 +22,7 @@ public class KDeferredRegister<V : IForgeRegistryEntry<V>>(
/**
* A map of all registry objects and their value suppliers.
*/
- private val entries = HashMap<ObjectHolderDelegate<out V>, () -> V>()
+ private val entries = LinkedHashMap<ObjectHolderDelegate<out V>, () -> V>()
/**
* Alternative constructor that uses a class instead of a registry.