Skip to content

Commit

Permalink
Fixed the map thing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vatuu committed Sep 13, 2019
1 parent 3fbe3a6 commit 0dd8e70
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'fabric-loom' version '0.2.4-SNAPSHOT'
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down Expand Up @@ -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 {}
}
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -17,10 +15,10 @@ public class DimensionRegistryImpl implements DimensionRegistry {

private static DimensionRegistryImpl INSTANCE;

private Int2ObjectMap<DimensionType> registered;
private Int2ObjectArrayMap<DimensionType> registered;

private DimensionRegistryImpl(){
registered = Int2ObjectMaps.emptyMap();
registered = new Int2ObjectArrayMap<>();
}

public static DimensionRegistryImpl getInstance(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0dd8e70

Please sign in to comment.