Compare commits

..

14 Commits

2 changed files with 6 additions and 9 deletions

View File

@ -317,11 +317,11 @@ local function stuck_on_step(self, dtime, entity_def, projectile_def)
gain = 1.0,
}, true)
end
mcl_burning.extinguish(self.object)
mcl_util.remove_entity(self)
return
end
mcl_burning.extinguish(self.object)
mcl_util.remove_entity(self)
return true
end
end
end
@ -333,7 +333,8 @@ function mod.sticks(self, dtime, entity_def, projectile_def)
-- Stuck handling
if self._stuck then
return stuck_on_step(self, dtime, entity_def, projectile_def)
stuck_on_step(self, dtime, entity_def, projectile_def)
return true
end
end

View File

@ -40,10 +40,6 @@ table.update(spear_entity._vl_projectile,{
local pos = self.object:get_pos()
local y_diff = math.abs(self._last_pos.y - pos.y)
minetest.log(dump({
y_diff = y_diff,
flat_time = self._flat_time,
}))
if y_diff > 0.0001 then
self._flat_time = 0
return