Przeglądaj źródła

Add missing ordinals

Lortseam 4 lat temu
rodzic
commit
6deb3dc0f2

+ 2 - 2
src/main/java/me/lortseam/uglyscoreboardfix/mixin/InGameHudMixin.java

@@ -26,12 +26,12 @@ public abstract class InGameHudMixin {
         }
     }
 
-    @ModifyVariable(method = "renderScoreboardSidebar", at = @At("STORE"))
+    @ModifyVariable(method = "renderScoreboardSidebar", at = @At(value = "STORE", ordinal = 0), ordinal = 0)
     private String uglyscoreboardfix$modifyScore(String score, MatrixStack matrices, ScoreboardObjective objective) {
         return Settings.Sidebar.Hiding.shouldHide(HidePart.SCORES, objective) ? "" : score;
     }
 
-    @ModifyVariable(method = "renderScoreboardSidebar", at = @At("STORE"), ordinal = 2)
+    @ModifyVariable(method = "renderScoreboardSidebar", at = @At(value = "STORE", ordinal = 0), ordinal = 2)
     private int uglyscoreboardfix$modifySeperatorWidth(int seperatorWidth, MatrixStack matrices, ScoreboardObjective objective) {
         return Settings.Sidebar.Hiding.shouldHide(HidePart.SCORES, objective) ? 0 : seperatorWidth;
     }