worldgen: actually generating ores

This commit is contained in:
minjaesong
2023-10-26 15:37:48 +09:00
parent 2bd54c8316
commit 012d3482dc
17 changed files with 394 additions and 256 deletions

View File

@@ -102,7 +102,7 @@ open class DroppedItem : ActorWithBody {
visualItemID = BlockCodex.getOrNull(itemID)?.world ?: itemID
}
if (textureRegion == null) {
textureRegion = ItemCodex.getItemImage(visualItemID)!!
textureRegion = ItemCodex.getItemImage(visualItemID) ?: throw NullPointerException("No Item image for ${visualItemID}")
}
// copy-pasted from ActorWithBody.drawSpriteInGoodPosition()