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
{{ message }}
Repository navigation
Commit 1f32800
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/main/java/ch/njol/skript/aliases/ItemType.java
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,7 @@ public void setTo(ItemType i) {
211
211
for (finalItemDatad : i) {
212
212
types.add(d.clone());
213
213
}
214
-
isRandom = i.isRandom;
214
+
isWrappingItemStack = i.isWrappingItemStack;
215
215
}
216
216
217
217
publicItemType(Blockblock) {
@@ -670,7 +670,11 @@ public ItemType clone() {
670
670
671
671
privatefinalstaticRandomrandom = newRandom();
672
672
673
-
publicbooleanisRandom = false;
673
+
/**
674
+
* Represents whether this ItemType is simply wrapping an ItemStack.
675
+
* That is, it has only a single data, and that data represents a random ItemStack.
676
+
*/
677
+
publicbooleanisWrappingItemStack = false;
674
678
675
679
/**
676
680
* @return One random ItemStack that this ItemType represents. If you have a List or an Inventory, use {@link #addTo(Inventory)} or {@link #addTo(List)} respectively.
0 commit comments