1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Fix logged error due to missing laser variants

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

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)]