mirror of
https://github.com/minetest-mods/technic.git
synced 2025-02-11 09:40:27 +01:00
Fix crash when switching station is placed
This commit is contained in:
parent
026c1ae6fe
commit
946f54070b
@ -8,5 +8,5 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
technic.register_cable(S("HV"), 3/16, "hv")
|
technic.register_cable(S("HV"), 3/16, "HV")
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
technic.register_tier("HV", "High Voltage")
|
technic.register_tier("HV")
|
||||||
|
|
||||||
local path = technic.modpath.."/machines/HV"
|
local path = technic.modpath.."/machines/HV"
|
||||||
|
|
||||||
|
@ -10,5 +10,5 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
technic.register_cable(S("LV"), 2/16, "lv")
|
technic.register_cable(S("LV"), 2/16, "LV")
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
technic.register_tier("LV", "Low Voltage")
|
technic.register_tier("LV")
|
||||||
|
|
||||||
local path = technic.modpath.."/machines/LV"
|
local path = technic.modpath.."/machines/LV"
|
||||||
|
|
||||||
|
@ -10,5 +10,5 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
technic.register_cable(S("MV"), 2.5/16, "mv")
|
technic.register_cable(S("MV"), 2.5/16, "MV")
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
technic.register_tier("MV", "Medium Voltage")
|
technic.register_tier("MV")
|
||||||
|
|
||||||
local path = technic.modpath.."/machines/MV"
|
local path = technic.modpath.."/machines/MV"
|
||||||
|
|
||||||
|
@ -11,12 +11,13 @@ technic.power_tools = {}
|
|||||||
technic.networks = {}
|
technic.networks = {}
|
||||||
|
|
||||||
|
|
||||||
function technic.register_tier(tier, description)
|
function technic.register_tier(tier)
|
||||||
technic.machines[tier] = {}
|
technic.machines[tier] = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
function technic.register_machine(tier, nodename, machine_type)
|
function technic.register_machine(tier, nodename, machine_type)
|
||||||
if not technic.machines[tier] then
|
if not technic.machines[tier] then
|
||||||
|
print("Warning: trying to register a machine with an unregistered tier")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
technic.machines[tier][nodename] = machine_type
|
technic.machines[tier][nodename] = machine_type
|
||||||
|
Loading…
Reference in New Issue
Block a user