Skip to content

Commit

Permalink
禁用实验性设置警告
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed Jul 31, 2024
1 parent 7a18ac0 commit 3d9b1e5
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,28 @@

import net.minecraft.client.gui.screens.worldselection.WorldOpenFlows;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyVariable;

@Mixin(WorldOpenFlows.class)
public class WorldOpenFlowsMixin {
@ModifyVariable(
method = "doLoadLevel",
at = @At("HEAD"),
argsOnly = true,
index = 4
)
private boolean removeAdviceOnLoad(boolean original) {
return false;
}

@ModifyVariable(
method = "confirmWorldCreation",
at = @At("HEAD"),
argsOnly = true,
index = 4
)
private static boolean removeAdviceOnCreation(boolean original) {
return true;
}
}

0 comments on commit 3d9b1e5

Please sign in to comment.