Updated to pre20
Voltage NPE fix
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>com.willfp.ecoenchants</groupId>
|
||||
<version>4.1.0-pre19</version>
|
||||
<version>4.1.0-pre20</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>com.willfp.ecoenchants</groupId>
|
||||
<version>4.1.0-pre19</version>
|
||||
<version>4.1.0-pre20</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>com.willfp.ecoenchants</groupId>
|
||||
<version>4.1.0-pre19</version>
|
||||
<version>4.1.0-pre20</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>com.willfp.ecoenchants</groupId>
|
||||
<version>4.1.0-pre19</version>
|
||||
<version>4.1.0-pre20</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>com.willfp.ecoenchants</groupId>
|
||||
<version>4.1.0-pre19</version>
|
||||
<version>4.1.0-pre20</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>plugin</artifactId>
|
||||
|
||||
@@ -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