Do not throw XP if in creative
parent
a3f23d0b35
commit
ef633ce617
|
@ -493,7 +493,9 @@ function mob_class:check_for_death(cause, cmi_cause)
|
||||||
|
|
||||||
if not mcl_sculk.handle_death(pos, xp_amount) then
|
if not mcl_sculk.handle_death(pos, xp_amount) then
|
||||||
--minetest.log("Xp not thrown")
|
--minetest.log("Xp not thrown")
|
||||||
|
if minetest.is_creative_enabled("") ~= true then
|
||||||
mcl_experience.throw_xp(pos, xp_amount)
|
mcl_experience.throw_xp(pos, xp_amount)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
--minetest.log("xp thrown")
|
--minetest.log("xp thrown")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue