don't apply move state velocity if volume riding, don't mount sprites on interact

This commit is contained in:
Isse 2023-05-06 13:18:32 +02:00
parent a0ed18c3db
commit 87b2f0fd26
2 changed files with 4 additions and 6 deletions

View File

@ -357,6 +357,9 @@ pub fn handle_skating(data: &JoinData, update: &mut StateUpdate) {
/// Handles updating `Components` to move player based on state of `JoinData`
pub fn handle_move(data: &JoinData<'_>, update: &mut StateUpdate, efficiency: f32) {
if data.volume_mount_data.is_some() {
return;
}
let submersion = data
.physics
.in_liquid()

View File

@ -956,12 +956,7 @@ impl PlayState for SessionState {
block.get_sprite().map(|s| (*pos, s)),
)
},
BlockInteraction::Mount => {
if block.is_mountable() {
client.mount_volume(*pos)
}
},
BlockInteraction::Mine(_) => {},
BlockInteraction::Mine(_) | BlockInteraction::Mount => {},
}
},
Interactable::Entity(entity) => {