mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-28 10:12:14 +01:00
Fix inWater
This commit is contained in:
parent
b31a9532f7
commit
72f0ff3ef0
@ -176,7 +176,7 @@ public class NMS {
|
|||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
private static Constructor<?> getCustomEntityConstructor(Class<?> clazz, EntityType type) throws SecurityException,
|
private static Constructor<?> getCustomEntityConstructor(Class<?> clazz, EntityType type) throws SecurityException,
|
||||||
NoSuchMethodException {
|
NoSuchMethodException {
|
||||||
Constructor<?> constructor = ENTITY_CONSTRUCTOR_CACHE.get(clazz);
|
Constructor<?> constructor = ENTITY_CONSTRUCTOR_CACHE.get(clazz);
|
||||||
if (constructor == null) {
|
if (constructor == null) {
|
||||||
constructor = clazz.getConstructor(World.class);
|
constructor = clazz.getConstructor(World.class);
|
||||||
@ -264,7 +264,7 @@ public class NMS {
|
|||||||
Entity mcEntity = getHandle(entity);
|
Entity mcEntity = getHandle(entity);
|
||||||
if (mcEntity == null)
|
if (mcEntity == null)
|
||||||
return false;
|
return false;
|
||||||
return mcEntity.L() || mcEntity.P();
|
return mcEntity.M() || mcEntity.P();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isNavigationFinished(Navigation navigation) {
|
public static boolean isNavigationFinished(Navigation navigation) {
|
||||||
|
Loading…
Reference in New Issue
Block a user