diff --git a/entity/coal.png.import b/entity/coal.png.import index f4bfd3a..93a9252 100644 --- a/entity/coal.png.import +++ b/entity/coal.png.import @@ -2,7 +2,7 @@ importer="texture" type="CompressedTexture2D" -uid="uid://cad2rtfm4iooa" +uid="uid://bnfwmlf7ems16" path="res://.godot/imported/coal.png-bae62eb66a24aa48a4fb6fc311fab196.ctex" metadata={ "vram_texture": false diff --git a/game/game.gd b/game/game.gd index 6800cf5..3211d6f 100644 --- a/game/game.gd +++ b/game/game.gd @@ -92,6 +92,9 @@ func _on_ghost_requested(scene: PackedScene, texture: Texture2D): func _on_ghost_materialize(): var instantiated = ghost.materialize() + if not instantiated: + print("[Game] The ghost can't materialize; the spawning is cancelled!") + return var spawner = instantiated.find_child("Spawner") if spawner != null: spawner.target = self