diff --git a/mods/lord/Core/projectiles/src/projectiles/entity.lua b/mods/lord/Core/projectiles/src/projectiles/entity.lua index 9bee24cf4..fb36909d8 100644 --- a/mods/lord/Core/projectiles/src/projectiles/entity.lua +++ b/mods/lord/Core/projectiles/src/projectiles/entity.lua @@ -52,10 +52,10 @@ local function punch_target(projectile, target, damage_groups, remove_after_hit, projectile.object:remove() end ---- @param entity LuaEntity entity to check if it is a projectile +--- @param entity ObjectRef entity to check if it is a projectile --- @return boolean true, if it is a projectile, or false local function is_entity_projectile(entity) - if not entity then + if not entity or not entity:get_luaentity() then return end local entity_name = entity:get_luaentity().name @@ -110,7 +110,7 @@ end -- Hit handling depending on target --- @param projectile LuaEntity projectile entity ---- @param target LuaEntity target entity +--- @param target ObjectRef target entity --- @param damage_groups table damage groups table (see Minetest API) --- @param velocity vector projectile velocity local function hit_handling(projectile, target, damage_groups, velocity) diff --git a/mods/lord/Tools/lord_projectiles/src/lord_projectiles/config.lua b/mods/lord/Tools/lord_projectiles/src/lord_projectiles/config.lua index 308a55f48..9e7a8e5f1 100644 --- a/mods/lord/Tools/lord_projectiles/src/lord_projectiles/config.lua +++ b/mods/lord/Tools/lord_projectiles/src/lord_projectiles/config.lua @@ -224,8 +224,8 @@ return { }, entity_reg = { initial_properties = { - visual = "item", - wield_item = "lord_projectiles:fire_ball", + visual = "sprite", + textures = { "mobs_fireball.png" }, visual_size = vector.new(1, 1, 1), }, max_speed = 40, @@ -316,8 +316,8 @@ return { }, entity_reg = { initial_properties = { - visual = "item", - wield_item = "lord_projectiles:dark_ball", + visual = "sprite", + textures = { "lottmobs_darkball.png" }, visual_size = vector.new(1, 1, 1), }, max_speed = 20,