diff --git a/mods/dr_game/Difficult_Rocket_rs/src/src/python.rs b/mods/dr_game/Difficult_Rocket_rs/src/src/python.rs index 5adce9b..b9be2b1 100644 --- a/mods/dr_game/Difficult_Rocket_rs/src/src/python.rs +++ b/mods/dr_game/Difficult_Rocket_rs/src/src/python.rs @@ -51,6 +51,10 @@ pub mod data { pub data: SR1PartType, } + impl PySR1PartType { + pub fn new(data: SR1PartType) -> Self { Self { data } } + } + #[pymethods] impl PySR1PartType { #[getter] @@ -81,10 +85,6 @@ pub mod data { fn get_type(&self) -> String { self.data.p_type.into() } } - impl PySR1PartType { - pub fn new(data: SR1PartType) -> Self { Self { data } } - } - #[pyclass] #[derive(Clone, Debug)] #[pyo3(name = "SR1PartList_rs")]