mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-30 14:43:54 +01:00
Update null equipment
This commit is contained in:
parent
cc8d9c10a8
commit
ead7db1990
@ -174,8 +174,6 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder {
|
|||||||
for (int i = 0; i < previousEquipment.length; i++) {
|
for (int i = 0; i < previousEquipment.length; i++) {
|
||||||
net.minecraft.server.ItemStack previous = previousEquipment[i];
|
net.minecraft.server.ItemStack previous = previousEquipment[i];
|
||||||
net.minecraft.server.ItemStack current = getEquipment(i);
|
net.minecraft.server.ItemStack current = getEquipment(i);
|
||||||
if (current == null)
|
|
||||||
continue;
|
|
||||||
if (!net.minecraft.server.ItemStack.equals(previous, current)) {
|
if (!net.minecraft.server.ItemStack.equals(previous, current)) {
|
||||||
Util.sendPacketNearby(getBukkitEntity().getLocation(), new Packet5EntityEquipment(id, i,
|
Util.sendPacketNearby(getBukkitEntity().getLocation(), new Packet5EntityEquipment(id, i,
|
||||||
current));
|
current));
|
||||||
|
Loading…
Reference in New Issue
Block a user