itemised the torch

This commit is contained in:
minjaesong
2024-02-16 00:26:13 +09:00
parent 76586baba5
commit 26bdd2253a
14 changed files with 57 additions and 31 deletions

View File

@@ -377,10 +377,7 @@ object LightmapRenderer {
val heldItem = it.inventory.itemEquipped[GameItem.EquipPosition.HAND_GRIP]
val light = if (heldItem != null && (heldItem.isBlock()))
BlockCodex[heldItem].getLumCol(0, 0)
else
Cvec(0)
val light = ItemCodex[heldItem]?.getLumCol() ?: Cvec(0)
Lightbox(Hitbox(