Updated to pre20

Voltage NPE fix
This commit is contained in:
Auxilor
2020-08-31 08:42:28 +01:00
parent b069521fbb
commit d06b518a78
7 changed files with 7 additions and 6 deletions

View File

@@ -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++;
}