🔧 Fix some dependency management.

This commit is contained in:
LambdAurora
2020-01-14 11:33:19 +01:00
parent a8c969b176
commit 7bfff00841
8 changed files with 25 additions and 12 deletions

View File

@@ -30,9 +30,8 @@ public abstract class ClientPlayerEntityMixin extends AbstractClientPlayerEntity
{
private boolean lambdacontrols_drifting_prevented = false;
// Can be mapped as `hasMovementInput` for example.
@Shadow
protected abstract boolean method_22120();
protected abstract boolean hasMovementInput();
public ClientPlayerEntityMixin(ClientWorld world, GameProfile profile)
{
@@ -45,7 +44,7 @@ public abstract class ClientPlayerEntityMixin extends AbstractClientPlayerEntity
LambdaControlsClient mod = LambdaControlsClient.get();
if (type == MovementType.SELF) {
if (this.abilities.flying && !mod.config.has_fly_drifting()) {
if (!this.method_22120()) {
if (!this.hasMovementInput()) {
if (!this.lambdacontrols_drifting_prevented) {
this.setVelocity(this.getVelocity().multiply(0, 1.0, 0));
}