diff --git a/mods/ITEMS/mcl_potions/tipped_arrow.lua b/mods/ITEMS/mcl_potions/tipped_arrow.lua index 2fe0806ba..1d67b65a2 100644 --- a/mods/ITEMS/mcl_potions/tipped_arrow.lua +++ b/mods/ITEMS/mcl_potions/tipped_arrow.lua @@ -54,8 +54,6 @@ function mcl_potions.register_arrow(name, desc, color, def) local potency = self._potency or 0 local plus = self._plus or 0 - minetest.log("tipped arrow collision") - if def._effect_list then for name, details in pairs(def._effect_list) do local ef_level = details.level @@ -75,7 +73,6 @@ function mcl_potions.register_arrow(name, desc, color, def) if details.effect_stacks then ef_level = ef_level + mcl_potions.get_effect_level(obj, name) end - minetest.log("giving effect "..name) mcl_potions.give_effect_by_level(name, obj, ef_level, dur) end end diff --git a/mods/ITEMS/mcl_throwing/egg.lua b/mods/ITEMS/mcl_throwing/egg.lua index e320d0c0c..80eae061d 100644 --- a/mods/ITEMS/mcl_throwing/egg.lua +++ b/mods/ITEMS/mcl_throwing/egg.lua @@ -46,14 +46,14 @@ minetest.register_entity("mcl_throwing:egg_entity",{ -- FIXME: Chicks have a quite good chance to spawn in walls if math.random(1,8) ~= 1 then return end - mcl_mobs.spawn_child(self._lastpos, "mobs_mc:chicken") + mcl_mobs.spawn_child(pos, "mobs_mc:chicken") -- BONUS ROUND: 1/32 chance to spawn 3 additional chicks if math.random(1,32) ~= 1 then return end - mcl_mobs.spawn_child(vector.offset(self._lastpos, 0.7, 0, 0), "mobs_mc:chicken") - mcl_mobs.spawn_child(vector.offset(self._lastpos, -0.7, 0, -0.7), "mobs_mc:chicken") - mcl_mobs.spawn_child(vector.offset(self._lastpos, -0.7, 0, 0.7), "mobs_mc:chicken") + mcl_mobs.spawn_child(vector.offset(pos, 0.7, 0, 0 ), "mobs_mc:chicken") + mcl_mobs.spawn_child(vector.offset(pos, -0.7, 0, -0.7), "mobs_mc:chicken") + mcl_mobs.spawn_child(vector.offset(pos, -0.7, 0, 0.7), "mobs_mc:chicken") end, sounds = { on_collision = {"mcl_throwing_egg_impact", {max_hear_distance=10, gain=0.5}, true} diff --git a/mods/ITEMS/vl_projectile/init.lua b/mods/ITEMS/vl_projectile/init.lua index 74680e90f..10449619d 100644 --- a/mods/ITEMS/vl_projectile/init.lua +++ b/mods/ITEMS/vl_projectile/init.lua @@ -183,6 +183,7 @@ end function mod.collides_with_solids(self, dtime, entity_def, projectile_def) local pos = self.object:get_pos() + if not pos then return end -- Don't try to do anything on first update if not self._last_pos then