summaryrefslogtreecommitdiff
path: root/client/map/items/food_processor_content.gd
diff options
context:
space:
mode:
authorRusty Striker <avivr903@tutanota.com>2024-07-09 21:54:03 +0300
committermetamuffin <metamuffin@disroot.org>2024-07-09 20:56:43 +0200
commit6975d465c406f5f9e360d34a98b65efc640f1d7a (patch)
tree983eea402b2f893ad5983ec0057ee05d07faceda /client/map/items/food_processor_content.gd
parent5cfc9451c070bd6e063b8fe935b55779a9acc97a (diff)
downloadhurrycurry-200df3266f01c84c83b07e705aff5da1125a49b0.tar
hurrycurry-200df3266f01c84c83b07e705aff5da1125a49b0.tar.bz2
hurrycurry-200df3266f01c84c83b07e705aff5da1125a49b0.tar.zst
fix food processor getting the same colorv1.0.0
Diffstat (limited to 'client/map/items/food_processor_content.gd')
-rw-r--r--client/map/items/food_processor_content.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/map/items/food_processor_content.gd b/client/map/items/food_processor_content.gd
index a8ba1079..8910590f 100644
--- a/client/map/items/food_processor_content.gd
+++ b/client/map/items/food_processor_content.gd
@@ -23,5 +23,6 @@ func _init(owned_by_: Node3D):
add_child(content)
func set_color(c: Color):
- var mat: BaseMaterial3D = content.get_active_material(0)
+ var mat: BaseMaterial3D = content.get_active_material(0).duplicate(true)
mat.albedo_color = c
+ content.material_override = mat