Skip to content

Commit 9ad2872

Browse files
committed
update info
1 parent 188497a commit 9ad2872

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

src/main/java/io/github/axolotlclient/modules/hud/gui/hud/PotionsHud.java

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.github.axolotlclient.modules.hud.gui.layout.CardinalOrder;
1212
import io.github.axolotlclient.modules.hud.util.DefaultOptions;
1313
import io.github.axolotlclient.modules.hud.util.Rectangle;
14+
import io.github.axolotlclient.util.Util;
1415
import net.minecraft.entity.effect.StatusEffect;
1516
import net.minecraft.entity.effect.StatusEffectInstance;
1617
import net.minecraft.util.Identifier;
@@ -35,6 +36,18 @@ public class PotionsHud extends TextHudEntry implements DynamicallyPositionable
3536
private final BooleanOption iconsOnly = new BooleanOption("axolotlclient.iconsonly", false);
3637
protected static final Identifier INVENTORY_TEXTURE = new Identifier("textures/gui/container/inventory.png");
3738

39+
private final List<StatusEffectInstance> placeholder = Util.make(()-> {
40+
List<StatusEffectInstance> list = new ArrayList<>();
41+
StatusEffectInstance effect = new StatusEffectInstance(StatusEffect.SPEED.id, 9999);
42+
StatusEffectInstance jump = new StatusEffectInstance(StatusEffect.JUMP_BOOST.id, 99999);
43+
StatusEffectInstance haste = new StatusEffectInstance(StatusEffect.HASTE.id, Integer.MAX_VALUE);
44+
haste.setPermanent(true);
45+
list.add(effect);
46+
list.add(jump);
47+
list.add(haste);
48+
return list;
49+
});
50+
3851
public PotionsHud() {
3952
super(50, 200, false);
4053
}
@@ -118,14 +131,7 @@ private void renderPotion(StatusEffectInstance effect, int x, int y) {
118131

119132
@Override
120133
public void renderPlaceholderComponent(float delta) {
121-
StatusEffectInstance effect = new StatusEffectInstance(StatusEffect.SPEED.id, 9999);
122-
StatusEffectInstance jump = new StatusEffectInstance(StatusEffect.JUMP_BOOST.id, 99999);
123-
StatusEffectInstance haste = new StatusEffectInstance(StatusEffect.HASTE.id, 9999999);
124-
List<StatusEffectInstance> list = new ArrayList<>();
125-
list.add(effect);
126-
list.add(jump);
127-
list.add(haste);
128-
renderEffects(list);
134+
renderEffects(placeholder);
129135
}
130136

131137
@Override

src/main/resources/fabric.mod.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"CornetPanique86"
1616
],
1717
"contact": {
18-
"homepage": "https://moehreag.duckdns.org/",
19-
"sources": "https://github.com/moehreag/AxolotlClient-mod/tree/1.8.9"
18+
"homepage": "https://axolotlclient.github.io/",
19+
"sources": "https://github.com/AxolotlClient/AxolotlClient-mod/tree/1.8.9"
2020
},
2121
"license": "LGPL-3.0-or-later",
2222
"icon": "assets/axolotlclient/icon.png",
@@ -34,7 +34,7 @@
3434
"modmenu:clientsideOnly": true
3535
},
3636
"depends": {
37-
"fabricloader": ">=0.14.0",
37+
"fabricloader": ">=0.14.7",
3838
"minecraft": "1.8.9",
3939
"legacy-fabric-api": ">=1.7.0"
4040
}

0 commit comments

Comments
 (0)