Skip to content

Commit

Permalink
Ported to 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunekaer committed Jan 13, 2024
1 parent 7db4b02 commit 4a93368
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
## [82.0.1]
- Build on Architectury
## [84.0.0]
- Ported to 1.20.4
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.sunekaer.yeetusexperimentus.mixin;

import com.mojang.serialization.Dynamic;
import com.mojang.serialization.Lifecycle;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.client.gui.screens.worldselection.CreateWorldScreen;
import net.minecraft.client.gui.screens.worldselection.WorldOpenFlows;
import net.minecraft.world.level.storage.LevelStorageSource;
import org.spongepowered.asm.mixin.Debug;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand All @@ -16,7 +18,7 @@
@Mixin(WorldOpenFlows.class)
public abstract class WorldOpenFlowsMixin {

@Shadow protected abstract void doLoadLevel(Screen $$0, String $$1, boolean $$2, boolean $$3);
@Shadow protected abstract void loadLevel(LevelStorageSource.LevelStorageAccess arg, Dynamic<?> dynamic, boolean bl, boolean bl2, Runnable runnable);

@Inject(
method = "confirmWorldCreation",
Expand All @@ -30,8 +32,8 @@ private static void beGone(Minecraft client, CreateWorldScreen parent, Lifecycle


@Inject(method = "loadLevel", at = @At("HEAD"), cancellable = true)
private void onLoadLevel(Screen screen, String string, CallbackInfo callbackInfo) {
doLoadLevel(screen, string, false, false);
private void onLoadLevel(LevelStorageSource.LevelStorageAccess levelStorageAccess, Dynamic<?> dynamic, boolean bl, boolean bl2, Runnable runnable, CallbackInfo callbackInfo) {
loadLevel(levelStorageAccess, dynamic, false, false, runnable);
callbackInfo.cancel();
}
}
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.daemon=false
enabled_platforms=fabric,neoforge,forge

# Project
mod_version=82.0.1
mod_version=84.0.0
maven_group=com.sunekaer.mods
mod_name=YeetusExperimentus
mod_author=Sunekaer
Expand All @@ -16,18 +16,18 @@ curseforge_id=635427
modrinth_id=HaaH232J

# Common
minecraft_version=1.20.2
minecraft_version=1.20.4

# Forge
forge_version=48.1.0
forge_version=49.0.14
forge_gradle_version=6.0.18

# Neo
neoforge_version=20.2.88
neoforge_version=20.4.80-beta
neoforge_gradle_version=7.0.80

# Fabric
fabric_api_version=0.91.2+1.20.2
fabric_api_version=0.91.2+1.20.4
fabric_loader_version=0.15.3


Expand Down
4 changes: 2 additions & 2 deletions neoforge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ Disables the Experimental Settings popup, which appears when you create or load

[[dependencies.yeetusexperimentus]]
modId="neoforge"
mandatory=true
required=true
versionRange="[20.2,)"
ordering="NONE"
side="BOTH"

[[dependencies.yeetusexperimentus]]
modId="minecraft"
mandatory=true
required=true
versionRange="[1.20,)"
ordering="NONE"
side="BOTH"
Expand Down

0 comments on commit 4a93368

Please sign in to comment.