forked from VoxeLibre/VoxeLibre
Make potion arrows able to hit end crystals
This commit is contained in:
parent
2033a9bf1d
commit
76e3a00e18
|
@ -198,7 +198,7 @@ function mcl_potions.register_arrow(name, desc, color, def)
|
||||||
if obj:is_player() then
|
if obj:is_player() then
|
||||||
ok = true
|
ok = true
|
||||||
elseif obj:get_luaentity() ~= nil then
|
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
|
ok = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue