Skip to content

Commit

Permalink
Merge branch 'arch/1.20.4' into arch/1.20
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	gradle.properties
  • Loading branch information
enjarai committed May 8, 2024
2 parents f5f5d4c + 7cdba04 commit e89b320
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Fixed compatibility with controlify 2.0.
- Fixed a very elusive bug causing the mod to sometimes just not work.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,9 @@ subprojects {
inputDir = "assets/${mod_id}/lang"
}
}

tasks.register('publishAll') {
group 'publishing'
dependsOn 'publish'
dependsOn 'publishMods'
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import nl.enjarai.doabarrelroll.config.Sensitivity;
import nl.enjarai.doabarrelroll.flight.RotationModifiers;
import nl.enjarai.doabarrelroll.math.MagicNumbers;
import nl.enjarai.doabarrelroll.mixin.roll.entity.PlayerEntityMixin;
import nl.enjarai.doabarrelroll.net.register.RollSyncClient;
import org.joml.Vector3d;
import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -17,7 +18,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(ClientPlayerEntity.class)
public abstract class ClientPlayerEntityMixin extends AbstractClientPlayerEntityMixin {
public abstract class ClientPlayerEntityMixin extends PlayerEntityMixin {
@Shadow public float renderYaw;
@Shadow public float lastRenderYaw;

Expand All @@ -42,11 +43,10 @@ public abstract class ClientPlayerEntityMixin extends AbstractClientPlayerEntity
}

@Override
protected void doABarrelRoll$baseTickTail(CallbackInfo ci) {
@Unique
protected void doABarrelRoll$baseTickTail2() {
// Update rolling status
doABarrelRoll$setRolling(RollEvents.shouldRoll());

super.doABarrelRoll$baseTickTail(ci);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ public abstract class PlayerEntityMixin extends LivingEntityMixin {

@Override
protected void doABarrelRoll$baseTickTail(CallbackInfo ci) {
doABarrelRoll$baseTickTail2();

prevRoll = doABarrelRoll$getRoll();

if (!doABarrelRoll$isRolling()) {
doABarrelRoll$setRoll(0.0f);
}
}

@Unique
protected void doABarrelRoll$baseTickTail2() {
}

@Override
public boolean doABarrelRoll$isRolling() {
return isRolling;
Expand Down
1 change: 0 additions & 1 deletion common/src/main/resources/do_a_barrel_roll.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"client.roll.GameRendererMixin",
"client.roll.MouseMixin",
"client.roll.PlayerEntityRendererMixin",
"client.roll.entity.AbstractClientPlayerEntityMixin",
"client.roll.entity.ClientPlayerEntityMixin"
],
"server": [
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

# Project
mod_version=3.5.5
mod_version=3.5.6
group=nl.enjarai

# Common
Expand Down

0 comments on commit e89b320

Please sign in to comment.