Add fix from 6d77918 to 1.11.2 branch

This commit is contained in:
Electroblob
2018-02-09 18:26:11 +00:00
parent e5c02cd0df
commit 2b24c3fb2a
@@ -103,8 +103,8 @@ public class RandomSpell extends LootFunction {
if(tier == Tier.BASIC){
element = Element.values()[random.nextInt(Element.values().length)];
}else{
element = ArrayUtils.removeElement(Element.values(), Element.MAGIC)[random
.nextInt(Element.values().length)];
Element[] elements = ArrayUtils.removeElement(Element.values(), Element.MAGIC);
element = elements[random.nextInt(elements.length)];
}
}else{
// In theory, swapping this line to the commented one should make absolutely no difference.