aboutsummaryrefslogtreecommitdiff
path: root/client/map
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-06-30 01:06:12 +0200
committertpart <tpart120@proton.me>2024-06-30 01:06:14 +0200
commit14a256c770774f3810723b48fa64b1b959113545 (patch)
treebb6c21f45edb0cab0835b48a7275f402c6aef233 /client/map
parent3322a7d3ceb399868c5eeeeb081249faa82506cd (diff)
downloadhurrycurry-14a256c770774f3810723b48fa64b1b959113545.tar
hurrycurry-14a256c770774f3810723b48fa64b1b959113545.tar.bz2
hurrycurry-14a256c770774f3810723b48fa64b1b959113545.tar.zst
Add get_setting and set_setting helper functions
Diffstat (limited to 'client/map')
-rw-r--r--client/map/items/grass.gd2
-rw-r--r--client/map/map.gd2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/map/items/grass.gd b/client/map/items/grass.gd
index 1222f767..15ee7603 100644
--- a/client/map/items/grass.gd
+++ b/client/map/items/grass.gd
@@ -29,7 +29,7 @@ func _init(rename: String, _neighbors: Array):
var random = RandomNumberGenerator.new()
random.seed = rename.hash()
- for _i in Global.settings["grass_amount"]["value"]:
+ for _i in Global.get_setting("grass_amount"):
var g: Node3D = GRASS_SIDE.instantiate()
grass_tile.add_child(g)
g.position = Vector3(random.randf_range(-.5, .5), 0, random.randf_range(-.5, .5))
diff --git a/client/map/map.gd b/client/map/map.gd
index 49df1ce3..092a488a 100644
--- a/client/map/map.gd
+++ b/client/map/map.gd
@@ -36,7 +36,7 @@ func _ready():
voxelgi_timer.connect("timeout", gi_bake)
func gi_bake():
- if not Global.settings["voxel_gi"]["value"]: return
+ if not Global.get_setting("voxel_gi"): return
print("Map: Rebaking VoxelGI")
gi_bake_blocking()