Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 6ae663b

Browse files
committed
Merge branch 'multiversion' into feat/sol/darkkronicle-bedwars-display
2 parents d5acde9 + 314a9f4 commit 6ae663b

File tree

8 files changed

+23
-24
lines changed

8 files changed

+23
-24
lines changed

1.16.5/src/main/java/io/github/axolotlclient/modules/particles/Particles.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void applyOptions(Particle particle) {
9797
}
9898

9999
public int getMultiplier(ParticleType<?> type) {
100-
if (enabled.get()) {
100+
if (enabled.get() && particleOptions.containsKey(type)) {
101101
HashMap<String, Option<?>> options = particleOptions.get(type);
102102

103103
return ((IntegerOption) options.get("count")).get();
@@ -106,7 +106,7 @@ public int getMultiplier(ParticleType<?> type) {
106106
}
107107

108108
public boolean getAlwaysOn(ParticleType<?> type) {
109-
return enabled.get()
109+
return enabled.get() && particleOptions.containsKey(type)
110110
&& ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("alwaysCrit")).get();
111111
}
112112

@@ -115,7 +115,7 @@ public static Particles getInstance() {
115115
}
116116

117117
public boolean getShowParticle(ParticleType<?> type) {
118-
return enabled.get()
118+
return enabled.get() && particleOptions.containsKey(type)
119119
? ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("showParticle")).get()
120120
: true;
121121
}

1.16_combat-6/src/main/java/io/github/axolotlclient/modules/particles/Particles.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void applyOptions(Particle particle) {
9797
}
9898

9999
public int getMultiplier(ParticleType<?> type) {
100-
if (enabled.get()) {
100+
if (enabled.get() && particleOptions.containsKey(type)) {
101101
HashMap<String, Option<?>> options = particleOptions.get(type);
102102

103103
return ((IntegerOption) options.get("count")).get();
@@ -106,7 +106,7 @@ public int getMultiplier(ParticleType<?> type) {
106106
}
107107

108108
public boolean getAlwaysOn(ParticleType<?> type) {
109-
return enabled.get()
109+
return enabled.get() && particleOptions.containsKey(type)
110110
&& ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("alwaysCrit")).get();
111111
}
112112

@@ -115,7 +115,7 @@ public static Particles getInstance() {
115115
}
116116

117117
public boolean getShowParticle(ParticleType<?> type) {
118-
return enabled.get()
118+
return enabled.get() && particleOptions.containsKey(type)
119119
? ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("showParticle")).get()
120120
: true;
121121
}

1.19.2/src/main/java/io/github/axolotlclient/modules/particles/Particles.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void applyOptions(Particle particle) {
9797
}
9898

9999
public int getMultiplier(ParticleType<?> type) {
100-
if (enabled.get()) {
100+
if (enabled.get() && particleOptions.containsKey(type)) {
101101
HashMap<String, Option<?>> options = particleOptions.get(type);
102102

103103
return ((IntegerOption) options.get("count")).get();
@@ -106,7 +106,7 @@ public int getMultiplier(ParticleType<?> type) {
106106
}
107107

108108
public boolean getAlwaysOn(ParticleType<?> type) {
109-
return enabled.get()
109+
return enabled.get() && particleOptions.containsKey(type)
110110
&& ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("alwaysCrit")).get();
111111
}
112112

@@ -115,7 +115,7 @@ public static Particles getInstance() {
115115
}
116116

117117
public boolean getShowParticle(ParticleType<?> type) {
118-
return enabled.get()
118+
return enabled.get() && particleOptions.containsKey(type)
119119
? ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("showParticle")).get()
120120
: true;
121121
}

1.19.3/src/main/java/io/github/axolotlclient/modules/particles/Particles.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void applyOptions(Particle particle) {
9797
}
9898

9999
public int getMultiplier(ParticleType<?> type) {
100-
if (enabled.get()) {
100+
if (enabled.get() && particleOptions.containsKey(type)) {
101101
HashMap<String, Option<?>> options = particleOptions.get(type);
102102

103103
return ((IntegerOption) options.get("count")).get();
@@ -106,7 +106,7 @@ public int getMultiplier(ParticleType<?> type) {
106106
}
107107

108108
public boolean getAlwaysOn(ParticleType<?> type) {
109-
return enabled.get()
109+
return enabled.get() && particleOptions.containsKey(type)
110110
&& ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("alwaysCrit")).get();
111111
}
112112

@@ -115,7 +115,7 @@ public static Particles getInstance() {
115115
}
116116

117117
public boolean getShowParticle(ParticleType<?> type) {
118-
return enabled.get()
118+
return enabled.get() && particleOptions.containsKey(type)
119119
? ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("showParticle")).get()
120120
: true;
121121
}

1.19.4/src/main/java/io/github/axolotlclient/modules/particles/Particles.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void applyOptions(Particle particle) {
9797
}
9898

9999
public int getMultiplier(ParticleType<?> type) {
100-
if (enabled.get()) {
100+
if (enabled.get() && particleOptions.containsKey(type)) {
101101
HashMap<String, Option<?>> options = particleOptions.get(type);
102102

103103
return ((IntegerOption) options.get("count")).get();
@@ -106,7 +106,7 @@ public int getMultiplier(ParticleType<?> type) {
106106
}
107107

108108
public boolean getAlwaysOn(ParticleType<?> type) {
109-
return enabled.get()
109+
return enabled.get() && particleOptions.containsKey(type)
110110
&& ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("alwaysCrit")).get();
111111
}
112112

@@ -115,7 +115,7 @@ public static Particles getInstance() {
115115
}
116116

117117
public boolean getShowParticle(ParticleType<?> type) {
118-
return enabled.get()
118+
return enabled.get() && particleOptions.containsKey(type)
119119
? ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("showParticle")).get()
120120
: true;
121121
}

1.20/src/main/java/io/github/axolotlclient/mixin/PlayerListHudMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public abstract class PlayerListHudMixin {
233233
),
234234
ordinal = 7
235235
)
236-
public int axolotlclient$changeWidth(int value, GuiGraphics graphics, int scaledWindowWidth, Scoreboard scoreboard, @Nullable ScoreboardObjective objective) {
236+
public int axolotlclient$changeWidth(int value) {
237237
if (BedwarsMod.getInstance().isEnabled() && BedwarsMod.getInstance().blockLatencyIcon() && (BedwarsMod.getInstance().isWaiting() || BedwarsMod.getInstance().inGame())) {
238238
value -= 9;
239239
}

1.20/src/main/java/io/github/axolotlclient/modules/particles/Particles.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void applyOptions(Particle particle) {
9797
}
9898

9999
public int getMultiplier(ParticleType<?> type) {
100-
if (enabled.get()) {
100+
if (enabled.get() && particleOptions.containsKey(type)) {
101101
HashMap<String, Option<?>> options = particleOptions.get(type);
102102

103103
return ((IntegerOption) options.get("count")).get();
@@ -106,7 +106,7 @@ public int getMultiplier(ParticleType<?> type) {
106106
}
107107

108108
public boolean getAlwaysOn(ParticleType<?> type) {
109-
return enabled.get()
109+
return enabled.get() && particleOptions.containsKey(type)
110110
&& ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("alwaysCrit")).get();
111111
}
112112

@@ -115,7 +115,7 @@ public static Particles getInstance() {
115115
}
116116

117117
public boolean getShowParticle(ParticleType<?> type) {
118-
return enabled.get()
118+
return enabled.get() && particleOptions.containsKey(type)
119119
? ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("showParticle")).get()
120120
: true;
121121
}

1.8.9/src/main/java/io/github/axolotlclient/modules/particles/Particles.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void applyOptions(Particle particle) {
9595
}
9696

9797
public int getMultiplier(ParticleType type) {
98-
if (enabled.get()) {
98+
if (enabled.get() && particleOptions.containsKey(type)) {
9999
HashMap<String, Option<?>> options = particleOptions.get(type);
100100

101101
return ((IntegerOption) options.get("count")).get();
@@ -104,7 +104,7 @@ public int getMultiplier(ParticleType type) {
104104
}
105105

106106
public boolean getAlwaysOn(ParticleType type) {
107-
return enabled.get()
107+
return enabled.get() && particleOptions.containsKey(type)
108108
&& ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("alwaysCrit"))
109109
.get();
110110
}
@@ -114,9 +114,8 @@ public static Particles getInstance() {
114114
}
115115

116116
public boolean getShowParticle(ParticleType type) {
117-
return enabled.get()
118-
? ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("showParticle"))
119-
.get()
117+
return enabled.get() && particleOptions.containsKey(type)
118+
? ((BooleanOption) Particles.getInstance().particleOptions.get(type).get("showParticle")).get()
120119
: true;
121120
}
122121

0 commit comments

Comments
 (0)