From fc0d4990b030fddb38c0842d8f184ee08c20af2e Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Sun, 20 Nov 2022 19:47:14 -0500 Subject: [PATCH] make minor bugfixes to restore compat with mineclone2 --- mod.conf | 2 +- signal_tubes.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",