diff --git a/build.gradle b/build.gradle index d3acaa6..842f710 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id 'fabric-loom' version '0.2.4-SNAPSHOT' + id 'maven-publish' } sourceCompatibility = JavaVersion.VERSION_1_8 @@ -45,3 +46,18 @@ task sourcesJar(type: Jar, dependsOn: classes) { from sourceSets.main.allSource } jar { from "LICENSE" } + +publishing { + publications { + mavenJava(MavenPublication) { + artifact(remapJar.output) { + builtBy remapJar + } + artifact(sourcesJar) { + builtBy remapSourcesJar + } + } + } + + repositories {} +} \ No newline at end of file diff --git a/src/main/java/dev/vatuu/tesseract/impl/world/DimensionRegistryImpl.java b/src/main/java/dev/vatuu/tesseract/impl/world/DimensionRegistryImpl.java index 90b415c..b2090c6 100644 --- a/src/main/java/dev/vatuu/tesseract/impl/world/DimensionRegistryImpl.java +++ b/src/main/java/dev/vatuu/tesseract/impl/world/DimensionRegistryImpl.java @@ -1,10 +1,8 @@ package dev.vatuu.tesseract.impl.world; import dev.vatuu.tesseract.api.DimensionRegistry; -import dev.vatuu.tesseract.api.DimensionState; import dev.vatuu.tesseract.impl.extensions.mixins.SimpleRegistryMixin; -import it.unimi.dsi.fastutil.ints.Int2ObjectMap; -import it.unimi.dsi.fastutil.ints.Int2ObjectMaps; +import it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap; import net.minecraft.util.Identifier; import net.minecraft.util.registry.Registry; import net.minecraft.world.World; @@ -17,10 +15,10 @@ public class DimensionRegistryImpl implements DimensionRegistry { private static DimensionRegistryImpl INSTANCE; - private Int2ObjectMap registered; + private Int2ObjectArrayMap registered; private DimensionRegistryImpl(){ - registered = Int2ObjectMaps.emptyMap(); + registered = new Int2ObjectArrayMap<>(); } public static DimensionRegistryImpl getInstance(){ diff --git a/src/main/java/dev/vatuu/tesseract/impl/world/TesseractDimension.java b/src/main/java/dev/vatuu/tesseract/impl/world/TesseractDimension.java index abda76d..c3935fa 100644 --- a/src/main/java/dev/vatuu/tesseract/impl/world/TesseractDimension.java +++ b/src/main/java/dev/vatuu/tesseract/impl/world/TesseractDimension.java @@ -18,7 +18,6 @@ public class TesseractDimension extends OverworldDimension { public BlockPos entryPoint; - TesseractDimension(World w, DimensionType t, DimensionSettings s){ super(w, t); this.type = t;