diff --git a/objects/collectibles/shard.gd b/objects/collectibles/shard.gd index abbbfb5..310af71 100644 --- a/objects/collectibles/shard.gd +++ b/objects/collectibles/shard.gd @@ -7,7 +7,8 @@ export var number = 0 #Used for saving which specific shards collected func _ready(): var hud = get_tree().get_nodes_in_group("hud").pop_back() - connect("collected",hud,"shard_popup") + if hud != null: + connect("collected",hud,"shard_popup") $AnimationPlayer.play("glow") func _on_Area2D_body_entered(body):