Updated to pre20
Voltage NPE fix
This commit is contained in:
@@ -57,6 +57,7 @@ public class Voltage extends EcoEnchant {
|
||||
|
||||
int pieces = 0;
|
||||
for (ItemStack armorPiece : equipment.getArmorContents()) {
|
||||
if(armorPiece == null) continue;
|
||||
if(Arrays.asList(items).contains(armorPiece.getType())) pieces++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user