mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
don't apply move state velocity if volume riding, don't mount sprites on interact
This commit is contained in:
parent
a0ed18c3db
commit
87b2f0fd26
@ -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()
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user