diff --git a/mod.conf b/mod.conf index cab78e8..51e0f95 100644 --- a/mod.conf +++ b/mod.conf @@ -1,5 +1,5 @@ name = pipeworks description = This mod uses mesh nodes and nodeboxes to supply a complete set of 3D pipes and tubes, along with devices that work with them. depends = basic_materials -optional_depends = mesecons, mesecons_mvps, digilines, signs_lib, unified_inventory, default, screwdriver, fl_mapgen, sound_api, i3, hades_core, hades_furnaces, hades_chests +optional_depends = mesecons, mesecons_mvps, digilines, signs_lib, unified_inventory, default, screwdriver, fl_mapgen, sound_api, i3, hades_core, hades_furnaces, hades_chests, mcl_mapgen_core min_minetest_version = 5.4.0 diff --git a/signal_tubes.lua b/signal_tubes.lua index 2713507..3a47e8c 100644 --- a/signal_tubes.lua +++ b/signal_tubes.lua @@ -12,7 +12,7 @@ local function after_break(pos) end if minetest.get_modpath("mesecons") and pipeworks.enable_detector_tube then - local detector_tube_step = 5 * tonumber(minetest.settings:get("dedicated_server_step")) + local detector_tube_step = 5 * (tonumber(minetest.settings:get("dedicated_server_step")) or 0.09) pipeworks.register_tube("pipeworks:detector_tube_on", { description = S("Detecting Pneumatic Tube Segment on"), inventory_image = "pipeworks_detector_tube_inv.png",