diff --git a/src/main/java/com/minelittlepony/unicopia/entity/EntityPhysics.java b/src/main/java/com/minelittlepony/unicopia/entity/EntityPhysics.java index 8c14516d..bbaa16ac 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/EntityPhysics.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/EntityPhysics.java @@ -146,16 +146,16 @@ public class EntityPhysics> implements Physics if (master instanceof LivingEntity) { - if (((LivingEntity)master).isSleeping()) { - return 1; - } - if (((LivingEntity)master).getAttributes() == null) { // may be null due to order of execution in the constructor. // Will have the default (1) here in any case, so it's safe to ignore the attribute at this point. return getBaseGravityModifier(); } + if (((LivingEntity)master).isSleeping()) { + return 1; + } + return getBaseGravityModifier() * (float)((LivingEntity)master).getAttributeValue(PlayerAttributes.ENTITY_GRAVTY_MODIFIER); }