mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 12:04:06 +09:00
lone leaves decaying
This commit is contained in:
@@ -125,9 +125,11 @@ open class DroppedItem : ActorWithBody {
|
||||
}
|
||||
|
||||
private fun getLum(itemID: ItemID): Cvec {
|
||||
return if (itemID.isBlock() || itemID.isWall()) {
|
||||
BlockCodex[itemID.substringAfter('@')].getLumCol(randKey1, randKey2)
|
||||
return if (itemID.isBlock()) {
|
||||
BlockCodex[itemID].getLumCol(randKey1, randKey2)
|
||||
}
|
||||
else if (itemID.isWall())
|
||||
BlockCodex[itemID.substringAfter('@')].getLumCol(randKey1, randKey2)
|
||||
else {
|
||||
Cvec(
|
||||
ItemCodex[itemID]?.itemProperties?.getAsFloat(AVKey.LUMR) ?: 0f,
|
||||
|
||||
Reference in New Issue
Block a user