From fc2ad10eb9de797fb3ed27311fe9e5eadd4ef08e Mon Sep 17 00:00:00 2001 From: Hendrix-Shen Date: Wed, 17 Aug 2022 20:02:58 +0800 Subject: [PATCH] [build sklip]Make function under control --- .../mixin/exp/expXiBao/MixinProblemScreen.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/top/hendrixshen/tweakmyclient/mixin/exp/expXiBao/MixinProblemScreen.java b/src/main/java/top/hendrixshen/tweakmyclient/mixin/exp/expXiBao/MixinProblemScreen.java index 34780c1c..8213adab 100644 --- a/src/main/java/top/hendrixshen/tweakmyclient/mixin/exp/expXiBao/MixinProblemScreen.java +++ b/src/main/java/top/hendrixshen/tweakmyclient/mixin/exp/expXiBao/MixinProblemScreen.java @@ -38,6 +38,14 @@ public void renderBackground(@NotNull PoseStack poseStack, int i) { //#else //$$ public void renderBackground(int i) { //#endif - AutoReconnectUtil.renderXibao(this); + if (Configs.expXiBao) { + AutoReconnectUtil.renderXibao(this); + } else { + //#if MC > 11502 + super.renderBackground(poseStack, i); + //#else + //$$ super.renderBackground(i); + //#endif + } } }