mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-04 09:10:38 +02:00
Add debug asserts.
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user