aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/generic_item.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/items/generic_item.gd')
-rw-r--r--client/map/items/generic_item.gd9
1 files changed, 2 insertions, 7 deletions
diff --git a/client/map/items/generic_item.gd b/client/map/items/generic_item.gd
index 00c67d11..fd119feb 100644
--- a/client/map/items/generic_item.gd
+++ b/client/map/items/generic_item.gd
@@ -16,11 +16,6 @@
class_name GenericItem
extends Item
-func _init(owned_by_: Node3D, t: String):
+func _init(owned_by_: Node3D, scene: PackedScene):
super(owned_by_)
- #add_child(load("res://models/prefabs/map/bag.tscn").instantiate())
- var label = Label3D.new()
- label.text = t
- label.position.y = 0.5
- label.billboard = BaseMaterial3D.BILLBOARD_ENABLED
- base.add_child(label)
+ base.add_child(scene.instantiate())