Bugfix: people could progress in the last phase of the tutorial without having the ball if they grabbed it, died and reached the goal (closes #103)

This commit is contained in:
Zughy 2023-11-19 20:05:33 +01:00
parent 873a1ff623
commit 00cfbc9531

View File

@ -367,6 +367,8 @@ function bl_tutorial.kill(player)
child:remove()
player:get_meta():set_int("bl_has_ball", 0)
p_tracker[5].prerequisites_satisfied = false
player:set_physics_override({speed = block_league.SPEED})
minetest.add_entity(ball_pos, "bl_tutorial:ball")
break
end