Better playerlist emulation

This commit is contained in:
fullwall 2013-02-06 21:17:44 +08:00
parent 5184ded750
commit f25c806aa3
2 changed files with 2 additions and 3 deletions

View File

@ -125,6 +125,8 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder {
@Override
public void j_() {
super.j_();
if (!npc.data().get("removefromplayerlist", true))
g();
if (npc == null)
return;

View File

@ -53,11 +53,8 @@ public class NMS {
}
private static final float DEFAULT_SPEED = 0.4F;
private static Map<Class<?>, Integer> ENTITY_CLASS_TO_INT;
private static final Map<Class<?>, Constructor<?>> ENTITY_CONSTRUCTOR_CACHE = new WeakHashMap<Class<?>, Constructor<?>>();
private static Map<Integer, Class<?>> ENTITY_INT_TO_CLASS;
private static Field GOAL_FIELD;
private static Field LAND_SPEED_MODIFIER_FIELD;