Make potion arrows able to hit end crystals

This commit is contained in:
Nils Dagsson Moskopp 2021-07-12 22:21:15 +02:00
parent 2033a9bf1d
commit 76e3a00e18
No known key found for this signature in database
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ function mcl_potions.register_arrow(name, desc, color, def)
if obj:is_player() then
ok = true
elseif obj:get_luaentity() ~= nil then
if obj:get_luaentity()._cmi_is_mob then
if obj:get_luaentity()._cmi_is_mob or obj:get_luaentity()._hittable_by_projectile then
ok = true
end
end