From a7013fabd50edae443ebcb84bd32f49604a9a186 Mon Sep 17 00:00:00 2001 From: tpart Date: Fri, 20 Sep 2024 16:34:44 +0200 Subject: Fix "Amount of particles must be greater than 0." error --- client/menu/rating/rating.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/menu') diff --git a/client/menu/rating/rating.gd b/client/menu/rating/rating.gd index 2d6eaa13..ed3acf12 100644 --- a/client/menu/rating/rating.gd +++ b/client/menu/rating/rating.gd @@ -16,7 +16,7 @@ # extends Menu -const PARTICLE_AMOUNTS = [0, 6, 32, 128] +const PARTICLE_AMOUNTS = [1, 6, 32, 128] @onready var title: Label = $MarginContainer/PanelContainer/VBoxContainer/Text/Title @onready var subtitle: Label = $MarginContainer/PanelContainer/VBoxContainer/Text/Subtitle @@ -49,7 +49,7 @@ func show_rating(stars_: int, points: int): particles.amount = PARTICLE_AMOUNTS[stars_] - if stars_ > 0: + if stars_ > 1: particles.emitting = true func _on_close_pressed(): -- cgit v1.2.3-70-g09d2