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:
@@ -582,6 +582,9 @@ open class GameWorld(
|
||||
throw IllegalArgumentException("illegal mode input: $mode")
|
||||
}
|
||||
|
||||
/**
|
||||
* Will return (Block.AIR, 0) if there is no ore
|
||||
*/
|
||||
fun getTileFromOre(rawX: Int, rawY: Int): OrePlacement {
|
||||
val (x, y) = coerceXY(rawX, rawY)
|
||||
val (tileNum, placement) = layerOres.unsafeGetTile1(x, y)
|
||||
|
||||
Reference in New Issue
Block a user