From 8928752b80b432d8ce60ddd5dabfee847333cdbe Mon Sep 17 00:00:00 2001 From: Doloment Date: Tue, 17 Sep 2024 01:16:45 +0700 Subject: [PATCH] Fix the crash when throwing a potion arrow into player. Closes #1674 --- mods/lord/Core/damage/src/damage/Type/Resolver.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/lord/Core/damage/src/damage/Type/Resolver.lua b/mods/lord/Core/damage/src/damage/Type/Resolver.lua index 6fabdcad7..af123fc8f 100644 --- a/mods/lord/Core/damage/src/damage/Type/Resolver.lua +++ b/mods/lord/Core/damage/src/damage/Type/Resolver.lua @@ -59,7 +59,7 @@ function Resolver.by_reason(reason) if player_or_mob:is_player() then -- `damage.Type` of: return Resolver.by_definition(item:get_definition()) -- Player wielded item - or Resolver.by_definition(minetest.registered_nodes[""]) -- Player hand + or Resolver.by_definition(minetest.registered_items[""]) -- Player hand else return item:get_name() ~= "" -- `damage.Type` of: and Resolver.by_definition(item:get_definition()) -- Entity wielded item