Index: data/runes.lua ================================================================== --- data/runes.lua +++ data/runes.lua @@ -1120,11 +1120,11 @@ return npos, true else local nstack = ItemStack(ty) nstack:get_meta():from_table(origmeta) local leftover = ctx.caster:get_inventory():add_item('main',nstack) - if leftover and not leftover.is_empty() then + if leftover and not leftover:is_empty() then minetest.add_item(ctx.caster:get_pos(), leftover) end end end else Index: vfx.lua ================================================================== --- vfx.lua +++ vfx.lua @@ -136,19 +136,20 @@ local vel = math.random() * 0.8 + 0.4 local col if type(color) == 'function' then col = color(i, {high = high, far = far, dir = dir, vel = vel, pos = po}) else col = color end + local et = math.floor((far/vel)*10)*.1 minetest.add_particle { pos = ppos; velocity = vector.multiply(dir,vel); - expirationtime = far / vel; + expirationtime = 0.4; size = math.random()*2.4 + 0.6; texture = sorcery.lib.image('sorcery_sputter.png'):glow(col):render(); glow = 14; animation = { - type = 'vertical_frames', length = math.floor((far/vel)*10)*.10; + type = 'vertical_frames', length = 0.4; aspect_w = 16, aspect_h = 16 }; } end end