From 57602adddb4bfb8b365a94efec41cd381ef48c7a Mon Sep 17 00:00:00 2001 From: Dan Baker Date: Thu, 26 Jun 2025 15:27:56 +0100 Subject: [PATCH] Removes unused variable Removes the unused 'rng' variable from the trees script. This simplifies the code and reduces unnecessary memory allocation. --- Entities/GroundTile/scripts/trees.gd | 1 - 1 file changed, 1 deletion(-) diff --git a/Entities/GroundTile/scripts/trees.gd b/Entities/GroundTile/scripts/trees.gd index dfbc87c..3a091c0 100644 --- a/Entities/GroundTile/scripts/trees.gd +++ b/Entities/GroundTile/scripts/trees.gd @@ -5,7 +5,6 @@ extends Node3D @export var min_distance: float = 0.5 var spawned_positions: Array[Vector3] = [] var parent_ground_tile: GroundTile -# Remove this line: var rng: RandomClass = RandomClass.new() func _ready(): parent_ground_tile = get_parent() as GroundTile