Fix inWater

This commit is contained in:
fullwall 2014-07-18 23:02:27 -07:00
parent b31a9532f7
commit 72f0ff3ef0

View File

@ -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) {