mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 02:45:13 -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 hasCeiling: Boolean = false,
|
||||||
val ultrawarm: Boolean = false,
|
val ultrawarm: Boolean = false,
|
||||||
val height: Int = 256,
|
val height: Int = 256,
|
||||||
|
val supports3DBiomes: Boolean = true,
|
||||||
) : RegistryItem {
|
) : RegistryItem {
|
||||||
val lowestSection = if (minY < 0) {
|
val lowestSection = if (minY < 0) {
|
||||||
(minY + 1) / ProtocolDefinition.SECTION_HEIGHT_Y - 1
|
(minY + 1) / ProtocolDefinition.SECTION_HEIGHT_Y - 1
|
||||||
@ -46,8 +47,6 @@ data class Dimension(
|
|||||||
height / ProtocolDefinition.SECTION_HEIGHT_Y
|
height / ProtocolDefinition.SECTION_HEIGHT_Y
|
||||||
}
|
}
|
||||||
|
|
||||||
val supports3DBiomes = resourceLocation.full != "minecraft:overworld" // ToDo
|
|
||||||
|
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return resourceLocation.toString()
|
return resourceLocation.toString()
|
||||||
}
|
}
|
||||||
@ -110,6 +109,7 @@ data class Dimension(
|
|||||||
hasCeiling = data.get("has_ceiling")?.asBoolean == true,
|
hasCeiling = data.get("has_ceiling")?.asBoolean == true,
|
||||||
ultrawarm = data.get("ultrawarm")?.asBoolean == true,
|
ultrawarm = data.get("ultrawarm")?.asBoolean == true,
|
||||||
height = data.get("height")?.asInt ?: 256,
|
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 {
|
init {
|
||||||
|
text()
|
||||||
text(
|
text(
|
||||||
if (GitInfo.IS_INITIALIZED) {
|
if (GitInfo.IS_INITIALIZED) {
|
||||||
"Commit: ${GitInfo.GIT_COMMIT_ID_DESCRIBE}: ${GitInfo.GIT_COMMIT_MESSAGE_SHORT}"
|
"Commit: ${GitInfo.GIT_COMMIT_ID_DESCRIBE}: ${GitInfo.GIT_COMMIT_MESSAGE_SHORT}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user