Fix logged error due to missing laser variants

This commit is contained in:
NGnius (Graham) committed 2025-02-25 21:44:41 -05:00
1 parent 2106613f62
commit 1df3e31bb6
3 files changed
+23 -19

No files matched your search

+4
View File
@@ -51,6 +51,10 @@ impl CubeInfo {
(Typed::Str("ignoreInWeaponsList".into()), Typed::Bool(self.ignore_in_weapon_list.into())), // optional
].into())
}
pub fn as_transmissible_key_val(&self, cube_id: u32) -> (Typed, Typed) {
(Typed::Str(hex::encode(cube_id.to_be_bytes()).into()), self.as_transmissible())
}
}
#[derive(Clone, Copy)]