update mappings and 21w40a, apparently.

This commit is contained in:
gnembon committed 2021-10-12 23:54:25 -03:00
1 parent 6a03675b4f
commit cfaf596c29
9 files changed
+30 -26

No files matched your search

@@ -17,7 +17,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(LivingEntity.class)
public abstract class LivingEntity_creativeFlyMixin extends Entity
{
@Shadow public float flyingSpeed;
@Shadow public float airStrafingSpeed;
public LivingEntity_creativeFlyMixin(EntityType<?> type, World world)
{
@@ -44,7 +44,7 @@ public abstract class LivingEntity_creativeFlyMixin extends Entity
{
PlayerEntity self = (PlayerEntity)(Object)(this);
if (self.getAbilities().flying && !onGround)
cir.setReturnValue(flyingSpeed* (float)CarpetSettings.creativeFlySpeed);
cir.setReturnValue( airStrafingSpeed* (float)CarpetSettings.creativeFlySpeed);
}
}
}