Skip to content

Commit 7739b0d

Browse files
committed
Fix: Jump being locked in wrong conditions
1 parent 46c2298 commit 7739b0d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

core/src/main/java/org/geysermc/geyser/entity/type/living/animal/horse/AbstractHorseEntity.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ public void updateSaddled(boolean saddled) {
8787
setFlag(EntityFlag.CAN_POWER_JUMP, saddled);
8888
super.updateSaddled(saddled);
8989

90-
// We want to allow player to press jump again if pressing jump doesn't dismount the entity.
91-
this.session.setLockInput(InputLocksFlag.JUMP, this.doesJumpDismount());
92-
this.session.updateInputLocks();
90+
if (this.passengers.contains(session.getPlayerEntity())) {
91+
// We want to allow player to press jump again if pressing jump doesn't dismount the entity.
92+
this.session.setLockInput(InputLocksFlag.JUMP, this.doesJumpDismount());
93+
this.session.updateInputLocks();
94+
}
9395
}
9496

9597
@Override

core/src/main/java/org/geysermc/geyser/level/physics/CollisionManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import org.cloudburstmc.math.vector.Vector3i;
3636
import org.cloudburstmc.protocol.bedrock.data.entity.EntityFlag;
3737
import org.cloudburstmc.protocol.bedrock.packet.MovePlayerPacket;
38-
import org.cloudburstmc.protocol.bedrock.packet.UpdateClientInputLocksPacket;
3938
import org.geysermc.erosion.util.BlockPositionIterator;
4039
import org.geysermc.geyser.entity.EntityDefinitions;
4140
import org.geysermc.geyser.entity.type.player.PlayerEntity;

0 commit comments

Comments
 (0)