Skip to content

Commit

Permalink
移除禁用实验性设置警告,修改竹块配方
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed Jul 29, 2024
1 parent 7ccc77f commit 562cdd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,8 @@

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 = "loadLevel",
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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
}
},
"pattern": [
"#",
"#"
"##"
],
"result": {
"item": "minecraft:bamboo_planks"
Expand Down

0 comments on commit 562cdd3

Please sign in to comment.