Skip to content

Commit

Permalink
Fix ClassCastException in tryEquipmentChangeNotify
Browse files Browse the repository at this point in the history
Bump to version 1.1.0
  • Loading branch information
Techcable committed Mar 1, 2015
1 parent 25a65ca commit f81a83d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>net.techcable.npclib</groupId>
<artifactId>parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>net.techcable.npclib</groupId>
<artifactId>parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>net.techcable</groupId>
Expand Down
2 changes: 1 addition & 1 deletion citizens/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>net.techcable.npclib</groupId>
<artifactId>parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>citizens</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion nms-v1_7_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>net.techcable.npclib</groupId>
<artifactId>parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion nms-v1_7_R4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>net.techcable.npclib</groupId>
<artifactId>parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion nms-v1_8_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>net.techcable.npclib</groupId>
<artifactId>parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion nms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>net.techcable.npclib</groupId>
<artifactId>parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion nms/src/main/java/net/techcable/npclib/nms/NMSNPC.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public void tryEquipmentChangeNotify(Player[] toNotify) {
ItemStack currentArmor = getEquipment(i);
if (!equals(currentArmor, lastArmor)) toUpdate.add(i);
}
if (toUpdate.size() != 0) Util.getNMS().notifyOfEquipmentChange(toNotify, (Player)this.getEntity(), ArrayUtils.toPrimitive(((Integer[])toUpdate.toArray())));
if (toUpdate.size() != 0) Util.getNMS().notifyOfEquipmentChange(toNotify, (Player)this.getEntity(), ArrayUtils.toPrimitive(toUpdate.toArray(new Integer[toUpdate.size()])));
}
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>net.techcable.npclib</groupId>
<artifactId>parent</artifactId>
<name>NPC Lib</name>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.0</version>
<packaging>pom</packaging>

<repositories>
Expand Down

0 comments on commit f81a83d

Please sign in to comment.