Add debug asserts.

Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
sfence 2022-11-04 08:21:56 +01:00 committed by GitHub
parent 4496e06747
commit 873daa6c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ function technic.get_cable_tier(name)
end
function technic.register_cable_tier(name, tier)
assert(technic.machines[tier], "Tier does not exist")
assert(type(name) == "string", "Invalid node name")
cable_tier[name] = tier
end