Skip to content

Commit f81a83d

Browse files
committed
Fix ClassCastException in tryEquipmentChangeNotify
Bump to version 1.1.0
1 parent 25a65ca commit f81a83d

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>net.techcable.npclib</groupId>
55
<artifactId>parent</artifactId>
6-
<version>1.1.0-SNAPSHOT</version>
6+
<version>1.1.0</version>
77
<relativePath>../pom.xml</relativePath>
88
</parent>
99
<artifactId>api</artifactId>

base/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>net.techcable.npclib</groupId>
55
<artifactId>parent</artifactId>
6-
<version>1.1.0-SNAPSHOT</version>
6+
<version>1.1.0</version>
77
<relativePath>../pom.xml</relativePath>
88
</parent>
99
<groupId>net.techcable</groupId>

citizens/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>net.techcable.npclib</groupId>
55
<artifactId>parent</artifactId>
6-
<version>1.1.0-SNAPSHOT</version>
6+
<version>1.1.0</version>
77
<relativePath>../pom.xml</relativePath>
88
</parent>
99
<artifactId>citizens</artifactId>

nms-v1_7_R3/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>net.techcable.npclib</groupId>
88
<artifactId>parent</artifactId>
9-
<version>1.1.0-SNAPSHOT</version>
9+
<version>1.1.0</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

nms-v1_7_R4/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>net.techcable.npclib</groupId>
88
<artifactId>parent</artifactId>
9-
<version>1.1.0-SNAPSHOT</version>
9+
<version>1.1.0</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

nms-v1_8_R1/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>net.techcable.npclib</groupId>
88
<artifactId>parent</artifactId>
9-
<version>1.1.0-SNAPSHOT</version>
9+
<version>1.1.0</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

nms/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>net.techcable.npclib</groupId>
88
<artifactId>parent</artifactId>
9-
<version>1.1.0-SNAPSHOT</version>
9+
<version>1.1.0</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

nms/src/main/java/net/techcable/npclib/nms/NMSNPC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public void tryEquipmentChangeNotify(Player[] toNotify) {
176176
ItemStack currentArmor = getEquipment(i);
177177
if (!equals(currentArmor, lastArmor)) toUpdate.add(i);
178178
}
179-
if (toUpdate.size() != 0) Util.getNMS().notifyOfEquipmentChange(toNotify, (Player)this.getEntity(), ArrayUtils.toPrimitive(((Integer[])toUpdate.toArray())));
179+
if (toUpdate.size() != 0) Util.getNMS().notifyOfEquipmentChange(toNotify, (Player)this.getEntity(), ArrayUtils.toPrimitive(toUpdate.toArray(new Integer[toUpdate.size()])));
180180
}
181181
}
182182

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>net.techcable.npclib</groupId>
44
<artifactId>parent</artifactId>
55
<name>NPC Lib</name>
6-
<version>1.1.0-SNAPSHOT</version>
6+
<version>1.1.0</version>
77
<packaging>pom</packaging>
88

99
<repositories>

0 commit comments

Comments
 (0)