Permalink
Browse files

Fix incorrect array index

  • Loading branch information...
PseudoKnight committed Dec 29, 2017
1 parent 0f78d5b commit d5e4387216f8842536154391178bafbcb2b9720e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/laytonsmith/core/functions/Enchantments.java
@@ -585,7 +585,7 @@ public Boolean runAsync() {
@Override
public Construct exec(Target t, Environment environment, Construct... args) throws ConfigRuntimeException {
MCItemStack is;
if(args[1] instanceof CArray) {
if(args[0] instanceof CArray) {
is = ObjectGenerator.GetGenerator().item(args[0], t);
} else {
is = Static.ParseItemNotation(null, args[0].val(), 1, t);

0 comments on commit d5e4387

Please sign in to comment.