diff options
Diffstat (limited to 'client/map')
| -rw-r--r-- | client/map/tiles/item_portal.gd | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/map/tiles/item_portal.gd b/client/map/tiles/item_portal.gd index 69bad5e9..f9d2a2ec 100644 --- a/client/map/tiles/item_portal.gd +++ b/client/map/tiles/item_portal.gd @@ -16,8 +16,7 @@ class_name ItemPortal extends CounterBase -var model: PortalModel = load("res://map/tiles/portal.tscn").instantiate() +var model := preload("res://map/tiles/portal.tscn") func _init(ctx: TileFactory.TileCC, type: bool): - super(ctx) + super(ctx, model) model.configure(0.2, type) - base.add_child(model) |