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