Skip to content

Commit

Permalink
Merge pull request #304 from sj-hub9796/fix-mixin-CAPTURE_FAILSOFT
Browse files Browse the repository at this point in the history
Fixes #303
  • Loading branch information
C0D3-M4513R authored Jul 16, 2024
2 parents af6ca98 + 2f08f48 commit 0cef066
Showing 1 changed file with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,25 @@
this.ejectPassengers();
if (flag && !this.hasCustomName()) {
this.discard();
@@ -261,6 +_,14 @@
@@ -260,7 +_,23 @@
return this.flipped ? this.getDirection().getOpposite().getClockWise() : this.getDirection().getClockWise();
}

+ // Ketting start - Fix Mixin issue
+ double prevX;
+ double prevY;
+ double prevZ;
+ float prevYaw;
+ float prevPitch;
+ // Ketting end - Fix Mixin issue
+
public void tick() {
+ // CraftBukkit start
+ double prevX = this.getX();
+ double prevY = this.getY();
+ double prevZ = this.getZ();
+ float prevYaw = this.getYRot();
+ float prevPitch = this.getXRot();
+ prevX = this.getX();
+ prevY = this.getY();
+ prevZ = this.getZ();
+ prevYaw = this.getYRot();
+ prevPitch = this.getXRot();
+ // CraftBukkit end
+
if (this.getHurtTime() > 0) {
Expand Down

0 comments on commit 0cef066

Please sign in to comment.