Skip to content

Commit

Permalink
Fix broken 'ResourceUtils.gd', fixes #115
Browse files Browse the repository at this point in the history
  • Loading branch information
Scony committed Nov 4, 2024
1 parent cca82f1 commit 0a25b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/match/utils/ResourceUtils.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ static func find_resource_unit_closest_to_unit_yet_no_further_than(
if filter_predicate != null:
resource_units = resource_units.filter(filter_predicate)
# TODO: Make anonymous-inline again once GDToolkit and Godot bugs are fixed.
func mapper(resource_unit):
var mapper = func(resource_unit):
return {
"distance":
(unit.global_position * Vector3(1, 0, 1)).distance_to(
Expand Down

0 comments on commit 0a25b0b

Please sign in to comment.