Skip to content

Commit 482c0ca

Browse files
committed
Allow dimensions to be removed
Fixes neoforged/NeoForge#102
1 parent b6a47da commit 482c0ca

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package org.embeddedt.modernfix.forge.mixin.bugfix.removed_dimensions;
2+
3+
import net.minecraft.world.level.storage.LevelStorageSource;
4+
import org.spongepowered.asm.mixin.Mixin;
5+
import org.spongepowered.asm.mixin.injection.At;
6+
import org.spongepowered.asm.mixin.injection.ModifyArg;
7+
8+
@Mixin(LevelStorageSource.class)
9+
public class LevelStorageSourceMixin {
10+
@ModifyArg(method = "*", at = @At(value = "INVOKE", target = "Lcom/mojang/serialization/DataResult;getOrThrow(ZLjava/util/function/Consumer;)Ljava/lang/Object;", ordinal = 0), index = 0)
11+
private static boolean alwaysAllowPartialDimensions(boolean flag) {
12+
return true;
13+
}
14+
}

0 commit comments

Comments
 (0)