Skip to content

Commit

Permalink
fix(ridables): can't fly up using spacebar with certain flying mobs
Browse files Browse the repository at this point in the history
  • Loading branch information
granny committed Dec 12, 2024
1 parent 254730e commit 4a204f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/server/0009-Ridables.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6065,7 +6065,7 @@ index 0000000000000000000000000000000000000000..940bcc6f79b59cb3cce578912eb789ef
+}
diff --git a/src/main/java/org/purpurmc/purpur/controller/FlyingWithSpacebarMoveControllerWASD.java b/src/main/java/org/purpurmc/purpur/controller/FlyingWithSpacebarMoveControllerWASD.java
new file mode 100644
index 0000000000000000000000000000000000000000..3601491076ec90c9a20177fca57a1acf366a8dab
index 0000000000000000000000000000000000000000..e0bbaec05afa0ae67ed486b14ea1fbadbbe90d9b
--- /dev/null
+++ b/src/main/java/org/purpurmc/purpur/controller/FlyingWithSpacebarMoveControllerWASD.java
@@ -0,0 +1,66 @@
Expand Down Expand Up @@ -6105,7 +6105,7 @@ index 0000000000000000000000000000000000000000..3601491076ec90c9a20177fca57a1acf
+ speed *= groundSpeedModifier;
+ }
+
+ if (rider.jumping && spacebarEvent(entity) && !entity.onSpacebar()) {
+ if (lastClientInput.jump() && spacebarEvent(entity) && !entity.onSpacebar()) {
+ entity.setNoGravity(true);
+ vertical = 1.0F;
+ } else {
Expand Down

0 comments on commit 4a204f1

Please sign in to comment.