mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 03:25:13 +01:00
Better playerlist emulation
This commit is contained in:
parent
5184ded750
commit
f25c806aa3
@ -125,6 +125,8 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder {
|
|||||||
@Override
|
@Override
|
||||||
public void j_() {
|
public void j_() {
|
||||||
super.j_();
|
super.j_();
|
||||||
|
if (!npc.data().get("removefromplayerlist", true))
|
||||||
|
g();
|
||||||
if (npc == null)
|
if (npc == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -53,11 +53,8 @@ public class NMS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final float DEFAULT_SPEED = 0.4F;
|
private static final float DEFAULT_SPEED = 0.4F;
|
||||||
|
|
||||||
private static Map<Class<?>, Integer> ENTITY_CLASS_TO_INT;
|
private static Map<Class<?>, Integer> ENTITY_CLASS_TO_INT;
|
||||||
|
|
||||||
private static final Map<Class<?>, Constructor<?>> ENTITY_CONSTRUCTOR_CACHE = new WeakHashMap<Class<?>, Constructor<?>>();
|
private static final Map<Class<?>, Constructor<?>> ENTITY_CONSTRUCTOR_CACHE = new WeakHashMap<Class<?>, Constructor<?>>();
|
||||||
|
|
||||||
private static Map<Integer, Class<?>> ENTITY_INT_TO_CLASS;
|
private static Map<Integer, Class<?>> ENTITY_INT_TO_CLASS;
|
||||||
private static Field GOAL_FIELD;
|
private static Field GOAL_FIELD;
|
||||||
private static Field LAND_SPEED_MODIFIER_FIELD;
|
private static Field LAND_SPEED_MODIFIER_FIELD;
|
||||||
|
Loading…
Reference in New Issue
Block a user