mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 17:21:49 -10:00
rustfmt creatures.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c1a49d50e6
commit
44c54ba8b8
1 file changed
+6
-1
@@ -230,7 +230,12 @@ pub(super) fn seen(m: &Mob, player: Option<[i32; 4]>) -> Seen {
|
||||
/// vehicle) and the camera entity the pick starts from, so a packet that names
|
||||
/// one of those does nothing rather than reaching the feed, shear, leash or
|
||||
/// name paths the pick path refuses.
|
||||
pub(super) fn named_mob_pickable(alive: bool, id: u32, riding: Option<u32>, camera: Option<u32>) -> bool {
|
||||
pub(super) fn named_mob_pickable(
|
||||
alive: bool,
|
||||
id: u32,
|
||||
riding: Option<u32>,
|
||||
camera: Option<u32>,
|
||||
) -> bool {
|
||||
alive && Some(id) != riding && Some(id) != camera
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user