mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Sprites that are colelctible but not explciitly added to SpriteInteractKind match statement have a default value to allow collection.
This commit is contained in:
parent
2a3cc3d35a
commit
f986176604
@ -159,6 +159,7 @@ impl From<SpriteKind> for Option<SpriteInteractKind> {
|
||||
| SpriteKind::ChestBuried
|
||||
| SpriteKind::Mud
|
||||
| SpriteKind::Crate => Some(SpriteInteractKind::Chest),
|
||||
_ if sprite_kind.is_collectible() => Some(SpriteInteractKind::Collectible),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user