Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit d15ca3f

Browse files
committed
Fix overworld being replaced with nether, fix #10
1 parent 88e6338 commit d15ca3f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ processResources {
7676
}
7777

7878
jar {
79+
finalizedBy reobfJar
7980
manifest.attributes(
8081
'Main-Class': 'org.dimdev.rift.Installer'
8182
)

src/main/java/org/dimdev/rift/mixin/hook/MixinMinecraftServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ public void loadAllWorlds(String saveName, String worldName, long seed, WorldTyp
113113

114114
List<WorldServer> worldList = new ArrayList<>();
115115
worldList.add(overworld);
116-
dimensionIdToWorldIndex.put(0, worldList.size());
117-
dimensionTypeToWorldIndex.put(DimensionType.OVERWORLD, worldList.size());
116+
dimensionIdToWorldIndex.put(0, 0);
117+
dimensionTypeToWorldIndex.put(DimensionType.OVERWORLD, 0);
118118

119119
// Create other worlds
120120
List<DimensionType> dimensionTypes;

0 commit comments

Comments
 (0)