From da0cad8af7c66efcb8330bc5c47cfc38b11ff752 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Thu, 18 Apr 2024 13:37:49 -0400 Subject: [PATCH] Fix flammable item entities crashing * https://github.com/minetest/minetest_game/issues/2657 * https://github.com/minetest/minetest_game/pull/2659 * partial fix from upstream --- mods/default/item_entity.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/default/item_entity.lua b/mods/default/item_entity.lua index f7b2b0b..35398e5 100644 --- a/mods/default/item_entity.lua +++ b/mods/default/item_entity.lua @@ -52,7 +52,7 @@ local item = { if pos == nil then return -- object already deleted end - local node = minetest.get_node_or_nil(self.object:getpos()) + local node = minetest.get_node_or_nil(pos) if not node then return end