You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix the MaterialBedSide property not registering
Correct the property output for MaterialBrewingStandBottles, and allow single-item inputs for MaterialTag.bottles mechanism
Fix MaterialBambooLeaves property registering twice
Copy file name to clipboardExpand all lines: plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialBrewingStandBottles.java
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,11 @@ private boolean hasBottles() {
53
53
}
54
54
55
55
privateListTaggetBottles() {
56
-
returnnewListTag(getStand().getBottles());
56
+
ListTagoutput = newListTag();
57
+
for (intbottle : getStand().getBottles()) {
58
+
output.add(String.valueOf(bottle + 1));
59
+
}
60
+
returnoutput;
57
61
}
58
62
59
63
/////////
@@ -158,7 +162,7 @@ public void adjust(Mechanism mechanism) {
158
162
// <MaterialTag.has_bottles>
159
163
// <MaterialTag.max_bottles>
160
164
// -->
161
-
if (mechanism.matches("bottles") && mechanism.requireObject(ListTag.class)) {
0 commit comments