mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 02:45:13 -04:00
PixLyzerBlock: load material and hardness from block data by default
All pixlyzer data from now on will have the data there.
This commit is contained in:
parent
6f43f9fdb6
commit
26fbc0c231
@ -65,8 +65,8 @@ open class PixLyzerBlock(
|
||||
|
||||
init {
|
||||
val state = data["states"]?.asAnyMap()!!.iterator().next().value.asJsonObject()
|
||||
material = registries.material[state["material"]]!!
|
||||
hardness = state["hardness"].toFloat()
|
||||
material = registries.material[data["material"] ?: state["material"]]!!
|
||||
hardness = data["hardness"]?.toFloat() ?: state["hardness"].toFloat()
|
||||
}
|
||||
|
||||
override fun buildState(settings: BlockStateSettings): BlockState {
|
||||
|
Loading…
x
Reference in New Issue
Block a user