diff options
-rwxr-xr-x | gamestate.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gamestate.lua b/gamestate.lua index 0cfd2e2..2e56307 100755 --- a/gamestate.lua +++ b/gamestate.lua @@ -163,10 +163,10 @@ function mypacman.on_player_got_power_pellet(player) local powersound = minetest.sound_play("mypacman_powerup", {pos = boardcenter,max_hear_distance = 20, object=player, loop=true}) minetest.after(power_pellet_duration, function() + minetest.sound_stop(powersound) if os.time() >= (gamestate.power_pellet or 0) then gamestate.power_pellet = false minetest.chat_send_player(name, "POWER PELLET wore off") - minetest.sound_stop(powersound) end end) end |