Force network manager connected for NPCs

This commit is contained in:
fullwall 2016-03-02 12:40:54 +08:00
parent 44b121fe79
commit 7de9263d9b
2 changed files with 5 additions and 1 deletions

View File

@ -223,7 +223,6 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
@Override
public String getSkinName() {
MetadataStore meta = npc.data();
String skinName = meta.get(NPC.PLAYER_SKIN_UUID_METADATA);

View File

@ -11,4 +11,9 @@ public class EmptyNetworkManager extends NetworkManager {
super(flag);
NMS.initNetworkManager(this);
}
@Override
public boolean isConnected() {
return true;
}
}