Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the crash when throwing a potion arrow into player. Closes #1674 #1675

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading