mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 10:25:06 -04:00
mappings: dimensions check for 3d biome support
This commit is contained in:
parent
7fcb4ad835
commit
c31115b858
@ -34,6 +34,7 @@ data class Dimension(
|
||||
val hasCeiling: Boolean = false,
|
||||
val ultrawarm: Boolean = false,
|
||||
val height: Int = 256,
|
||||
val supports3DBiomes: Boolean = true,
|
||||
) : RegistryItem {
|
||||
val lowestSection = if (minY < 0) {
|
||||
(minY + 1) / ProtocolDefinition.SECTION_HEIGHT_Y - 1
|
||||
@ -46,8 +47,6 @@ data class Dimension(
|
||||
height / ProtocolDefinition.SECTION_HEIGHT_Y
|
||||
}
|
||||
|
||||
val supports3DBiomes = resourceLocation.full != "minecraft:overworld" // ToDo
|
||||
|
||||
override fun toString(): String {
|
||||
return resourceLocation.toString()
|
||||
}
|
||||
@ -110,6 +109,7 @@ data class Dimension(
|
||||
hasCeiling = data.get("has_ceiling")?.asBoolean == true,
|
||||
ultrawarm = data.get("ultrawarm")?.asBoolean == true,
|
||||
height = data.get("height")?.asInt ?: 256,
|
||||
supports3DBiomes = data.get("supports_3d_biomes")?.asBoolean ?: !resourceLocation.full.contains("overworld")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -45,6 +45,7 @@ class HUDSystemDebugElement(hudRenderer: HUDRenderer) : DebugScreen(hudRenderer)
|
||||
|
||||
|
||||
init {
|
||||
text()
|
||||
text(
|
||||
if (GitInfo.IS_INITIALIZED) {
|
||||
"Commit: ${GitInfo.GIT_COMMIT_ID_DESCRIBE}: ${GitInfo.GIT_COMMIT_MESSAGE_SHORT}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user