Merge branch '1.12.2' into 1.12.2-dev
This commit is contained in:
@@ -110,7 +110,7 @@ public final class WandHelper {
|
||||
|
||||
int selectedSpell = wand.getTagCompound().getInteger(SELECTED_SPELL_KEY);
|
||||
|
||||
if(selectedSpell < spells.length){
|
||||
if(selectedSpell >= 0 && selectedSpell < spells.length){
|
||||
return spells[selectedSpell];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user