Skip to content

Commit deda877

Browse files
committed
- added enchantability to material view
1 parent 8207656 commit deda877

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
## v2.0.3 (1.21)
22
- improved stat preview more
3-
- fixed bugs related enchanting and to twin blades enchanting
3+
- fixed bugs related enchanting and to twin blades enchanting
4+
- added enchantability to material view

common/src/main/java/smartin/miapi/client/gui/crafting/crafter/MaterialDetailView.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ public class MaterialDetailView extends InteractAbleWidget {
4242
registerBuilder(
4343
new Builder("durability").setMax(2000).setFormat("##")
4444
);
45+
registerBuilder(
46+
new Builder("enchantability")
47+
);
4548
registerBuilder(
4649
new Builder("mining_speed")
4750
);
@@ -108,8 +111,8 @@ public void renderWidget(GuiGraphics drawContext, int mouseX, int mouseY, float
108111
public static class InfoBar extends InteractAbleWidget {
109112
public StatBar statBar;
110113
public ScrollingTextWidget textWidget;
111-
public static int textWidth = 65;
112-
public static int barWitdh = 35;
114+
public static int textWidth = 69;
115+
public static int barWitdh = 34;
113116
public static int spacer = 1;
114117
public ScrollingTextWidget valueHolder;
115118

common/src/main/resources/assets/miapi/lang/en_us.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@
286286
"miapi.material_stat.density": "Density",
287287
"miapi.material_stat.hardness": "Hardness",
288288
"miapi.material_stat.durability": "Durability",
289+
"miapi.material_stat.enchantability": "Enchantability",
289290
"miapi.material_stat.mining_speed": "Mining Speed",
290291
"miapi.material_stat.mining_level": "Mining Level",
291292
"miapi.material_group.stone": "Stone",

0 commit comments

Comments
 (0)