From 4cc4d7c09aa92a963edbf598125fcdaacd82d588 Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Sat, 22 Mar 2025 10:35:19 -0400 Subject: [PATCH] Minor error checking --- scenes/blocks/block.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scenes/blocks/block.gd b/scenes/blocks/block.gd index e00eb39..ef98bc7 100644 --- a/scenes/blocks/block.gd +++ b/scenes/blocks/block.gd @@ -47,7 +47,10 @@ func _apply_material() -> void: func _load_resource_data() -> void: if not id: - printerr("Block ID was expected but was not received") + printerr("Could not load resource data. Block ID was empty.") return + if not id in DBItems.data: + printerr("Could not load resource data. Unknown Block ID: ", id) + return resource = DBItems.data[id]