1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-21 15:44:21 +00:00

Disallow strokes while in hole

This commit is contained in:
Steffo 2024-03-16 05:56:10 +01:00
parent 923a5e17c9
commit b8af4952d7
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -134,6 +134,7 @@ func check_has_entered_hole() -> bool:
func rpc_sync_enter_hole():
in_hole = true
visible = false
putt_controller.can_putt = false
if not multiplayer.is_server():
hole_sound.play()
entered_hole.emit(strokes)