From f01db14db8ea0fc88a99a17d56aecf041375a1d0 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Wed, 17 Apr 2024 22:15:41 -0400 Subject: [PATCH 1/2] mods - mod jam - allows old way to get boolean value, for tnt --- mods/mobs_jam/balrog.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/mobs_jam/balrog.lua b/mods/mobs_jam/balrog.lua index 0299e47..c7418b5 100644 --- a/mods/mobs_jam/balrog.lua +++ b/mods/mobs_jam/balrog.lua @@ -117,7 +117,7 @@ if (PATH_FINDER == nil) then PATH_FINDER = 1 end -local enable_tnt = minetest.settings:get_bool("enable_tnt") +local enable_tnt = minetest.settings:get_bool("enable_tnt") or minetest.settings:get("enable_tnt") or false local spawn_nodes = {"group:stone"} if minetest.get_modpath("nether") then From 67010cc154fc8f091decd5dedb63a437f7778702 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Wed, 17 Apr 2024 22:16:52 -0400 Subject: [PATCH 2/2] mods - default - backported Override builtin item entity the portable way * closes https://codeberg.org/minenux/minetest-game-minetest/issues/16 --- mods/default/item_entity.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/default/item_entity.lua b/mods/default/item_entity.lua index c34e60e..c37c58f 100644 --- a/mods/default/item_entity.lua +++ b/mods/default/item_entity.lua @@ -39,8 +39,8 @@ local item = { }) end, - on_step = function(self, dtime) - builtin_item.on_step(self, dtime) + on_step = function(self, dtime, ...) + builtin_item.on_step(self, dtime, ...) if self.flammable then -- flammable, check for igniters