mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 20:14:05 +09:00
worldgen: actually generating ores
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user