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){ if(tier == Tier.BASIC){
element = Element.values()[random.nextInt(Element.values().length)]; element = Element.values()[random.nextInt(Element.values().length)];
}else{ }else{
element = ArrayUtils.removeElement(Element.values(), Element.MAGIC)[random Element[] elements = ArrayUtils.removeElement(Element.values(), Element.MAGIC);
.nextInt(Element.values().length)]; element = elements[random.nextInt(elements.length)];
} }
}else{ }else{
// In theory, swapping this line to the commented one should make absolutely no difference. // In theory, swapping this line to the commented one should make absolutely no difference.