mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Do not throw XP if in creative
This commit is contained in:
parent
a3f23d0b35
commit
ef633ce617
1 changed files with 3 additions and 1 deletions
|
@ -493,7 +493,9 @@ function mob_class:check_for_death(cause, cmi_cause)
|
|||
|
||||
if not mcl_sculk.handle_death(pos, xp_amount) then
|
||||
--minetest.log("Xp not thrown")
|
||||
mcl_experience.throw_xp(pos, xp_amount)
|
||||
if minetest.is_creative_enabled("") ~= true then
|
||||
mcl_experience.throw_xp(pos, xp_amount)
|
||||
end
|
||||
else
|
||||
--minetest.log("xp thrown")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue