Fluid.NULL is identical to Block.AIR

This commit is contained in:
minjaesong
2024-07-15 00:48:52 +09:00
parent bddd871c9d
commit 5f1b860555
9 changed files with 74 additions and 63 deletions

View File

@@ -8,7 +8,7 @@ import net.torvald.terrarum.gameitems.ItemID
*/
object Fluid {
val NULL = "fluid@basegame:0"
val NULL = Block.AIR
val WATER = "fluid@basegame:1"
val LAVA = "fluid@basegame:2"

View File

@@ -33,6 +33,9 @@ class FluidCodex {
}
}
fun getOrNull(blockID: ItemID?): FluidProp? {
return fluidProps[blockID]
}
/**
* Later entry (possible from other modules) will replace older ones