aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/glass_fill.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/items/glass_fill.gd')
-rw-r--r--client/map/items/glass_fill.gd8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/map/items/glass_fill.gd b/client/map/items/glass_fill.gd
index 8b1e18f0..dc03f784 100644
--- a/client/map/items/glass_fill.gd
+++ b/client/map/items/glass_fill.gd
@@ -14,14 +14,12 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
class_name GlassFill
-extends Glass
+extends Item
var fill: MeshInstance3D = load("res://map/items/glass_fill.tscn").instantiate()
-func _init(owned_by_: Node3D):
+func _init(owned_by_: Node3D, c: Color):
super(owned_by_)
- add_child(fill)
-
-func set_color(c: Color):
var mat: BaseMaterial3D = fill.get_active_material(0)
mat.albedo_color = c
+ add_child(fill)