mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-08 17:38:32 +01:00
Fix gravity
This commit is contained in:
parent
d579fcbb53
commit
b902879ca6
@ -287,7 +287,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
}
|
||||
boolean navigating = npc.getNavigator().isNavigating();
|
||||
if (!navigating && getBukkitEntity() != null
|
||||
&& (npc.hasTrait(Gravity.class) && npc.getTrait(Gravity.class).hasGravity())
|
||||
&& (!npc.hasTrait(Gravity.class) || npc.getTrait(Gravity.class).hasGravity())
|
||||
&& Util.isLoaded(getBukkitEntity().getLocation(LOADED_LOCATION))) {
|
||||
g(0, 0);
|
||||
}
|
||||
|
@ -347,7 +347,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
cA();
|
||||
boolean navigating = npc.getNavigator().isNavigating();
|
||||
if (!navigating && getBukkitEntity() != null
|
||||
&& (npc.hasTrait(Gravity.class) && npc.getTrait(Gravity.class).hasGravity())
|
||||
&& (!npc.hasTrait(Gravity.class) || npc.getTrait(Gravity.class).hasGravity())
|
||||
&& Util.isLoaded(getBukkitEntity().getLocation(LOADED_LOCATION))) {
|
||||
g(0, 0);
|
||||
}
|
||||
|
@ -374,7 +374,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
Y();
|
||||
boolean navigating = npc.getNavigator().isNavigating();
|
||||
if (!navigating && getBukkitEntity() != null
|
||||
&& (npc.hasTrait(Gravity.class) && npc.getTrait(Gravity.class).hasGravity())
|
||||
&& (!npc.hasTrait(Gravity.class) || npc.getTrait(Gravity.class).hasGravity())
|
||||
&& Util.isLoaded(getBukkitEntity().getLocation(LOADED_LOCATION))) {
|
||||
a(0, 0, 0);
|
||||
}
|
||||
|
@ -344,7 +344,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
W();
|
||||
boolean navigating = npc.getNavigator().isNavigating();
|
||||
if (!navigating && getBukkitEntity() != null
|
||||
&& (npc.hasTrait(Gravity.class) && npc.getTrait(Gravity.class).hasGravity())
|
||||
&& (!npc.hasTrait(Gravity.class) || npc.getTrait(Gravity.class).hasGravity())
|
||||
&& Util.isLoaded(getBukkitEntity().getLocation(LOADED_LOCATION))) {
|
||||
a(0, 0, 0);
|
||||
}
|
||||
|
@ -348,7 +348,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
entityBaseTick();
|
||||
boolean navigating = npc.getNavigator().isNavigating();
|
||||
if (!navigating && getBukkitEntity() != null
|
||||
&& (npc.hasTrait(Gravity.class) && npc.getTrait(Gravity.class).hasGravity())
|
||||
&& (!npc.hasTrait(Gravity.class) || npc.getTrait(Gravity.class).hasGravity())
|
||||
&& Util.isLoaded(getBukkitEntity().getLocation(LOADED_LOCATION))) {
|
||||
e(new Vec3D(0, 0, 0));
|
||||
}
|
||||
|
@ -348,7 +348,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
entityBaseTick();
|
||||
boolean navigating = npc.getNavigator().isNavigating();
|
||||
if (!navigating && getBukkitEntity() != null
|
||||
&& (npc.hasTrait(Gravity.class) && npc.getTrait(Gravity.class).hasGravity())
|
||||
&& (!npc.hasTrait(Gravity.class) || npc.getTrait(Gravity.class).hasGravity())
|
||||
&& Util.isLoaded(getBukkitEntity().getLocation(LOADED_LOCATION))) {
|
||||
e(new Vec3D(0, 0, 0));
|
||||
}
|
||||
|
@ -379,7 +379,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
entityBaseTick();
|
||||
boolean navigating = npc.getNavigator().isNavigating();
|
||||
if (!navigating && getBukkitEntity() != null
|
||||
&& (npc.hasTrait(Gravity.class) && npc.getTrait(Gravity.class).hasGravity())
|
||||
&& (!npc.hasTrait(Gravity.class) || npc.getTrait(Gravity.class).hasGravity())
|
||||
&& Util.isLoaded(getBukkitEntity().getLocation(LOADED_LOCATION))) {
|
||||
f(new Vec3D(0, 0, 0));
|
||||
}
|
||||
|
@ -292,7 +292,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
||||
}
|
||||
boolean navigating = npc.getNavigator().isNavigating();
|
||||
if (!navigating && getBukkitEntity() != null
|
||||
&& (npc.hasTrait(Gravity.class) && npc.getTrait(Gravity.class).hasGravity())
|
||||
&& (!npc.hasTrait(Gravity.class) || npc.getTrait(Gravity.class).hasGravity())
|
||||
&& Util.isLoaded(getBukkitEntity().getLocation(LOADED_LOCATION))) {
|
||||
g(0, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user