File tree Expand file tree Collapse file tree 16 files changed +83
-48
lines changed
1.16.5/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars
1.16_combat-6/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars
1.19.2/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars
1.19.3/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars
1.19.4/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars
1.20/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars
1.8.9/src/main/java/io/github/axolotlclient/modules/hypixel/bedwars
common/src/main/java/io/github/axolotlclient/modules/hypixel Expand file tree Collapse file tree 16 files changed +83
-48
lines changed Original file line number Diff line number Diff line change @@ -123,10 +123,14 @@ public Text getBottomBarText() {
123123 }
124124
125125 private String calculateTopBarText () {
126- return getFormattedTime ()+"\n " +
127- "K: " +me .getStats ().getGameKills ()+
128- " D: " +me .getStats ().getGameDeaths ()+
129- " B: " +me .getStats ().getGameBedsBroken ();
126+ String topBar = getFormattedTime ();
127+ if (me .getStats () != null ){
128+ topBar += "\n " +
129+ "K: " +me .getStats ().getGameKills ()+
130+ " D: " +me .getStats ().getGameDeaths ()+
131+ " B: " +me .getStats ().getGameBedsBroken ();
132+ }
133+ return topBar ;
130134 }
131135
132136 private String calculateBottomBarText () {
Original file line number Diff line number Diff line change @@ -162,8 +162,8 @@ public void tick() {
162162 waiting = false ;
163163 if (currentGame .isStarted ()) {
164164 // Trigger setting the header
165- MinecraftClient .getInstance ().inGameHud .getPlayerListHud ().setHeader (null );
166165 currentGame .tick ();
166+ MinecraftClient .getInstance ().inGameHud .getPlayerListHud ().setHeader (null );
167167 } else {
168168 if (checkReady ()) {
169169 currentGame .onStart ();
Original file line number Diff line number Diff line change @@ -123,10 +123,14 @@ public Text getBottomBarText() {
123123 }
124124
125125 private String calculateTopBarText () {
126- return getFormattedTime ()+"\n " +
127- "K: " +me .getStats ().getGameKills ()+
128- " D: " +me .getStats ().getGameDeaths ()+
129- " B: " +me .getStats ().getGameBedsBroken ();
126+ String topBar = getFormattedTime ();
127+ if (me .getStats () != null ){
128+ topBar += "\n " +
129+ "K: " +me .getStats ().getGameKills ()+
130+ " D: " +me .getStats ().getGameDeaths ()+
131+ " B: " +me .getStats ().getGameBedsBroken ();
132+ }
133+ return topBar ;
130134 }
131135
132136 private String calculateBottomBarText () {
Original file line number Diff line number Diff line change @@ -163,8 +163,8 @@ public void tick() {
163163 waiting = false ;
164164 if (currentGame .isStarted ()) {
165165 // Trigger setting the header
166- MinecraftClient .getInstance ().inGameHud .getPlayerListWidget ().setHeader (null );
167166 currentGame .tick ();
167+ MinecraftClient .getInstance ().inGameHud .getPlayerListWidget ().setHeader (null );
168168 } else {
169169 if (checkReady ()) {
170170 currentGame .onStart ();
Original file line number Diff line number Diff line change @@ -123,10 +123,14 @@ public Text getBottomBarText() {
123123 }
124124
125125 private String calculateTopBarText () {
126- return getFormattedTime ()+"\n " +
127- "K: " +me .getStats ().getGameKills ()+
128- " D: " +me .getStats ().getGameDeaths ()+
129- " B: " +me .getStats ().getGameBedsBroken ();
126+ String topBar = getFormattedTime ();
127+ if (me .getStats () != null ){
128+ topBar += "\n " +
129+ "K: " +me .getStats ().getGameKills ()+
130+ " D: " +me .getStats ().getGameDeaths ()+
131+ " B: " +me .getStats ().getGameBedsBroken ();
132+ }
133+ return topBar ;
130134 }
131135
132136 private String calculateBottomBarText () {
Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ public void tick() {
161161 waiting = false ;
162162 if (currentGame .isStarted ()) {
163163 // Trigger setting the header
164- MinecraftClient .getInstance ().inGameHud .getPlayerListHud ().setHeader (null );
165164 currentGame .tick ();
165+ MinecraftClient .getInstance ().inGameHud .getPlayerListHud ().setHeader (null );
166166 } else {
167167 if (checkReady ()) {
168168 currentGame .onStart ();
Original file line number Diff line number Diff line change @@ -123,10 +123,14 @@ public Text getBottomBarText() {
123123 }
124124
125125 private String calculateTopBarText () {
126- return getFormattedTime ()+"\n " +
127- "K: " +me .getStats ().getGameKills ()+
128- " D: " +me .getStats ().getGameDeaths ()+
129- " B: " +me .getStats ().getGameBedsBroken ();
126+ String topBar = getFormattedTime ();
127+ if (me .getStats () != null ){
128+ topBar += "\n " +
129+ "K: " +me .getStats ().getGameKills ()+
130+ " D: " +me .getStats ().getGameDeaths ()+
131+ " B: " +me .getStats ().getGameBedsBroken ();
132+ }
133+ return topBar ;
130134 }
131135
132136 private String calculateBottomBarText () {
Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ public void tick() {
161161 waiting = false ;
162162 if (currentGame .isStarted ()) {
163163 // Trigger setting the header
164- MinecraftClient .getInstance ().inGameHud .getPlayerListHud ().setHeader (null );
165164 currentGame .tick ();
165+ MinecraftClient .getInstance ().inGameHud .getPlayerListHud ().setHeader (null );
166166 } else {
167167 if (checkReady ()) {
168168 currentGame .onStart ();
Original file line number Diff line number Diff line change @@ -122,10 +122,14 @@ public Text getBottomBarText() {
122122 }
123123
124124 private String calculateTopBarText () {
125- return getFormattedTime ()+"\n " +
126- "K: " +me .getStats ().getGameKills ()+
127- " D: " +me .getStats ().getGameDeaths ()+
128- " B: " +me .getStats ().getGameBedsBroken ();
125+ String topBar = getFormattedTime ();
126+ if (me .getStats () != null ){
127+ topBar += "\n " +
128+ "K: " +me .getStats ().getGameKills ()+
129+ " D: " +me .getStats ().getGameDeaths ()+
130+ " B: " +me .getStats ().getGameBedsBroken ();
131+ }
132+ return topBar ;
129133 }
130134
131135 private String calculateBottomBarText () {
Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ public void tick() {
161161 waiting = false ;
162162 if (currentGame .isStarted ()) {
163163 // Trigger setting the header
164- MinecraftClient .getInstance ().inGameHud .getPlayerListHud ().setHeader (null );
165164 currentGame .tick ();
165+ MinecraftClient .getInstance ().inGameHud .getPlayerListHud ().setHeader (null );
166166 } else {
167167 if (checkReady ()) {
168168 currentGame .onStart ();
You can’t perform that action at this time.
0 commit comments