1
0
Fork 0

fix the other 2 throw_xp occurences

new_mapgen_api
cora 2022-02-24 21:22:50 +01:00 committed by Gitea
parent caacb378de
commit 3feca330c9
2 changed files with 2 additions and 2 deletions

View File

@ -1556,7 +1556,7 @@ local breed = function(self)
-- Give XP -- Give XP
if mod_experience then if mod_experience then
mcl_experience.throw_experience(pos, math.random(1, 7)) mcl_experience.throw_xp(pos, math.random(1, 7))
end end
-- custom breed function -- custom breed function

View File

@ -97,7 +97,7 @@ mobs:register_mob("mobs_mc:enderdragon", {
mcl_portals.spawn_gateway_portal() mcl_portals.spawn_gateway_portal()
mcl_structures.call_struct(self._portal_pos, "end_exit_portal_open") mcl_structures.call_struct(self._portal_pos, "end_exit_portal_open")
if self._initial then if self._initial then
mcl_experience.throw_experience(pos, 11500) -- 500 + 11500 = 12000 mcl_experience.throw_xp(pos, 11500) -- 500 + 11500 = 12000
minetest.set_node(vector.add(self._portal_pos, vector.new(3, 5, 3)), {name = mobs_mc.items.dragon_egg}) minetest.set_node(vector.add(self._portal_pos, vector.new(3, 5, 3)), {name = mobs_mc.items.dragon_egg})
end end
end end