Skip to content

Commit 264015a

Browse files
committed
Merge pull request #382 from Pieter12345/master
Made max_stack_size not modify the given array.
2 parents 21759eb + 388e5aa commit 264015a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/laytonsmith/core/ObjectGenerator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ public MCItemStack item(Construct i, Target t) {
280280
if (item.get("type", t).val().contains(":")) {
281281
//We're using the combo addressing method
282282
String[] split = item.get("type", t).val().split(":");
283+
item = item.deepClone(t);
283284
item.set("type", split[0]);
284285
item.set("data", split[1]);
285286
}

0 commit comments

Comments
 (0)