mindustry logic execution, map- and schematic- parsing and rendering
-rw-r--r--mindus/src/block/walls.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/mindus/src/block/walls.rs b/mindus/src/block/walls.rs
index 018d7d8..4c2e6c4 100644
--- a/mindus/src/block/walls.rs
+++ b/mindus/src/block/walls.rs
@@ -60,6 +60,7 @@ impl BlockLogic for DoorBlock {
fn deserialize_state(&self, data: DynData) -> Result<Option<State>, DeserializeError> {
match data {
DynData::Boolean(opened) => Ok(Some(Self::create_state(opened))),
+ DynData::Empty => Ok(Some(Self::create_state(false))),
_ => Err(DeserializeError::InvalidType {
have: data.get_type(),
expect: DynType::Boolean,