Skip to content

Commit

Permalink
Switch mainProject to 1.20.4
Browse files Browse the repository at this point in the history
Signed-off-by: Hendrix-Shen <[email protected]>
  • Loading branch information
Hendrix-Shen committed Dec 23, 2023
1 parent 845b148 commit a05e7bf
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The default hotkey to open the in-game config GUI is **T + C**.

### Support

Current main development for Minecraft version: 1.20.1
Current main development for Minecraft version: 1.20.4

And use `preprocess` to be compatible with all versions.

Expand Down
2 changes: 1 addition & 1 deletion README_ZH_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

### 支持

当前主开发版本:1.20.1
当前主开发版本:1.20.4

并且使用 `预处理` 来兼容各版本。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float delta)
} else {
this.renderBackground(
//#if MC > 12001
//$$ guiGraphics, mouseX, mouseY, delta
guiGraphics, mouseX, mouseY, delta
//#else
guiGraphics
//$$ guiGraphics
//#endif
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public abstract class MixinScreen extends AbstractContainerEventHandler {
at = @At(
value = "INVOKE",
//#if MC > 12001
//$$ target = "Lnet/minecraft/client/gui/screens/Screen;renderTransparentBackground(Lnet/minecraft/client/gui/GuiGraphics;)V"
target = "Lnet/minecraft/client/gui/screens/Screen;renderTransparentBackground(Lnet/minecraft/client/gui/GuiGraphics;)V"
//#elseif MC > 11904
target = "Lnet/minecraft/client/gui/GuiGraphics;fillGradient(IIIIII)V"
//$$ target = "Lnet/minecraft/client/gui/GuiGraphics;fillGradient(IIIIII)V"
//#elseif MC > 11502
//$$ target = "Lnet/minecraft/client/gui/screens/Screen;fillGradient(Lcom/mojang/blaze3d/vertex/PoseStack;IIIIII)V"
//#else
Expand All @@ -46,9 +46,9 @@ private void onFillGradient(
//$$ PoseStack poseStack,
//#endif
//#if MC > 12001
//$$ int i,
//$$ int j,
//$$ float f,
int i,
int j,
float f,
//#endif
//#if MC < 11904
//$$ int i,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public abstract class MixinScreen extends AbstractContainerEventHandler {
*/
@ModifyArgs(
//#if MC > 12001
//$$ method = "renderTransparentBackground",
method = "renderTransparentBackground",
//#elseif MC > 11903
method = "renderBackground",
//$$ method = "renderBackground",
//#elseif MC > 11502
//$$ method = "renderBackground(Lcom/mojang/blaze3d/vertex/PoseStack;I)V",
//#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public static String getWindowTitle() {
return I18n.get("title.singleplayer");
} else if (
//#if MC > 12001
//$$ mc.getCurrentServer() != null && mc.getCurrentServer().isRealm()
mc.getCurrentServer() != null && mc.getCurrentServer().isRealm()
//#else
mc.isConnectedToRealms()
//$$ mc.isConnectedToRealms()
//#endif
) {
return I18n.get("title.multiplayer.realms");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

//#if MC < 12000
//#if MC > 11605
import net.minecraft.client.renderer.GameRenderer;
//$$ import net.minecraft.client.renderer.GameRenderer;
//#else
//$$ import org.lwjgl.opengl.GL11;
//#endif
Expand Down
2 changes: 1 addition & 1 deletion versions/mainProject
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.20.1
1.20.4

0 comments on commit a05e7bf

Please sign in to comment.