Skip to content

Commit ee77712

Browse files
Fix importing logistic request and buffer chests connected to circuit networks
1 parent 07b910a commit ee77712

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

draftsman/signatures.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ def normalize_signal_filters(entries):
264264
)
265265
)
266266

267+
LOGISTIC_MODE_OF_OPERATION = Schema(Or(0, 1))
268+
267269
# CONTROL_BEHAVIOR = Schema(
268270
# And(
269271
# Use(lambda x: {} if x is None else x), # Convert to empty dict if None
@@ -450,11 +452,7 @@ def normalize_signal_filters(entries):
450452
Use(lambda x: {} if x is None else x), # Convert to empty dict if None
451453
{
452454
# Circuit condition
453-
Optional("circuit_enable_disable"): bool,
454-
Optional("circuit_condition"): CONDITION,
455-
# Logistic condition
456-
Optional("connect_to_logistic_network"): bool,
457-
Optional("logistic_condition"): CONDITION,
455+
Optional("circuit_mode_of_operation"): LOGISTIC_MODE_OF_OPERATION,
458456
},
459457
)
460458
)
@@ -464,11 +462,7 @@ def normalize_signal_filters(entries):
464462
Use(lambda x: {} if x is None else x), # Convert to empty dict if None
465463
{
466464
# Circuit condition
467-
Optional("circuit_enable_disable"): bool,
468-
Optional("circuit_condition"): CONDITION,
469-
# Logistic condition
470-
Optional("connect_to_logistic_network"): bool,
471-
Optional("logistic_condition"): CONDITION,
465+
Optional("circuit_mode_of_operation"): LOGISTIC_MODE_OF_OPERATION,
472466
},
473467
)
474468
)

0 commit comments

Comments
 (0)