From 9524b8313a3b057028556cebafb23c932ba397a7 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Wed, 3 Apr 2024 22:07:14 +0000 Subject: [PATCH] Silence unmaskable print statements --- mods/ENTITIES/mcl_minecarts/functions.lua | 2 +- mods/ENTITIES/mcl_minecarts/init.lua | 4 ++-- mods/ENTITIES/mcl_minecarts/rails.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ENTITIES/mcl_minecarts/functions.lua b/mods/ENTITIES/mcl_minecarts/functions.lua index 5c498ab5d..63673b631 100644 --- a/mods/ENTITIES/mcl_minecarts/functions.lua +++ b/mods/ENTITIES/mcl_minecarts/functions.lua @@ -232,7 +232,7 @@ local function update_rail_connections(pos, opt) -- Apply the mapping local new_name = nodedef._mcl_minecarts.base_name..rule[1] if new_name ~= node.name or node.param2 ~= rule[2] then - print("swapping "..node.name.." for "..new_name..","..tostring(rule[2]).." at "..tostring(pos)) + --print("swapping "..node.name.." for "..new_name..","..tostring(rule[2]).." at "..tostring(pos)) node.name = new_name node.param2 = rule[2] minetest.swap_node(pos, node) diff --git a/mods/ENTITIES/mcl_minecarts/init.lua b/mods/ENTITIES/mcl_minecarts/init.lua index becec34ca..2ee7f8e12 100644 --- a/mods/ENTITIES/mcl_minecarts/init.lua +++ b/mods/ENTITIES/mcl_minecarts/init.lua @@ -850,7 +850,7 @@ function mcl_minecarts.place_minecart(itemstack, pointed_thing, placer) -- Call placer if le._mcl_minecarts_on_place then - print("Calling on_place") + --print("Calling on_place") le._mcl_minecarts_on_place(le, placer) end @@ -1124,7 +1124,7 @@ function table_metadata(table) return { table = table, set_string = function(self, key, value) - print("set_string("..tostring(key)..", "..tostring(value)..")") + --print("set_string("..tostring(key)..", "..tostring(value)..")") self.table[key] = tostring(value) end, get_string = function(self, key) diff --git a/mods/ENTITIES/mcl_minecarts/rails.lua b/mods/ENTITIES/mcl_minecarts/rails.lua index 0924f9502..367d91970 100644 --- a/mods/ENTITIES/mcl_minecarts/rails.lua +++ b/mods/ENTITIES/mcl_minecarts/rails.lua @@ -133,7 +133,7 @@ local function register_rail_v2(itemstring, ndef) if not ndef.inventory_image then ndef.inventory_image = ndef.tiles[1] end if not ndef.wield_image then ndef.wield_image = ndef.tiles[1] end - print("registering rail "..itemstring.." with definition: "..dump(ndef)) + --print("registering rail "..itemstring.." with definition: "..dump(ndef)) -- Make registrations minetest.register_node(itemstring, ndef)