Skip to content

Commit

Permalink
Fix the crash when throwing a potion arrow into player. Closes #1674
Browse files Browse the repository at this point in the history
  • Loading branch information
Doloment committed Sep 16, 2024
1 parent 3f5e4b2 commit 8928752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/lord/Core/damage/src/damage/Type/Resolver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8928752

Please sign in to comment.