Skip to content

Commit edeff66

Browse files
committed
Fixed incorrect default recipe ui id
1 parent 9a8020d commit edeff66

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
# ChangeLog
22

3-
* Fixed heat/Temp/RotationCondition doesn't check all parts.
4-
* Fixed unable to set recipe to pneumatic craft air, always reverts back to pressure.
5-
* Fixed looping sounds do not get stopped.
6-
* Fixed ingredient Candidates are linked between a base item entry and its copies.
7-
* Fixed Error in Recipe Viewer UI Slot Datas when more than 10 of a same type of slot are present.
8-
* Added the ability to shuffle through variations of a defined sound.
3+
* Fixed incorrect default recipe ui id

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mapping_version=2023.09.03-1.20.1
2020
mod_id=mbd2
2121
mod_name=Multiblocked2
2222
mod_license=LGPL-3.0 license
23-
mod_version=1.0.21.b
23+
mod_version=1.0.21.c
2424
mod_group_id=com.lowdragmc.multiblocked2
2525
mod_authors=KilaBash
2626
mod_url=https://github.com/Low-Drag-MC/Multiblocked2

src/main/java/com/lowdragmc/mbd2/common/gui/editor/recipe/widget/RecipeTypeUIFloatView.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ public void addCap(RecipeCapability cap, int maxSize, IO io) {
148148
addButton(cap.createPreviewWidget(cap.createDefaultContent()), () -> {
149149
var found = 0;
150150
for (int i = 0; i < maxSize; i++) {
151-
var id = "^@%s_%s_%d$".formatted(cap.name, io.name, i);
152-
if (WidgetUtils.getFirstWidgetById(ui, id) != null) {
151+
var id = "@%s_%s_%d".formatted(cap.name, io.name, i);
152+
if (WidgetUtils.getFirstWidgetById(ui, "^%s$".formatted(id)) != null) {
153153
found++;
154154
}
155155
}
@@ -167,8 +167,8 @@ public void addCap(RecipeCapability cap, int maxSize, IO io) {
167167
}, () -> {
168168
var x = 5;
169169
for (int i = 0; i < maxSize; i++) {
170-
var id = "^@%s_%s_%d$".formatted(cap.name, io.name, i);
171-
if (WidgetUtils.getFirstWidgetById(ui, id) == null) {
170+
var id = "@%s_%s_%d".formatted(cap.name, io.name, i);
171+
if (WidgetUtils.getFirstWidgetById(ui, "^%s$".formatted(id)) == null) {
172172
var template = cap.createXEITemplate();
173173
template.setSelfPosition(x, 5);
174174
template.setId(id);

0 commit comments

Comments
 (0)