forked from VoxeLibre/VoxeLibre
master #5
|
@ -75,7 +75,7 @@ local function drop_xp(pos)
|
||||||
local dir = vector.divide(minetest.facedir_to_dir(minetest.get_node(pos).param2),-1.95)
|
local dir = vector.divide(minetest.facedir_to_dir(minetest.get_node(pos).param2),-1.95)
|
||||||
local xp = meta:get_int("xp")
|
local xp = meta:get_int("xp")
|
||||||
if xp > 0 then
|
if xp > 0 then
|
||||||
mcl_experience.throw_experience(vector.add(pos, dir), )
|
mcl_experience.throw_experience(vector.add(pos, dir), xp)
|
||||||
meta:set_int("xp", 0)
|
meta:set_int("xp", 0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue