mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-09 21:31:51 +09:00
fixing unlit torch bug
This commit is contained in:
@@ -19,6 +19,6 @@ object ReferencingRanges {
|
||||
val ACTORS_FRONT = 0x6000_0000..0x6FFF_FFFF // Rendered front (e.g. fake tile)
|
||||
val ACTORS_OVERLAY = 0x7000_0000..0x7FFF_FFFF // Rendered as screen overlay, not affected by light nor environment overlays
|
||||
|
||||
val VIRTUAL_TILES = -1 downTo -65536
|
||||
val VIRTUAL_TILES = -2 downTo -65536 // index of -1 breaks things for some reason :(
|
||||
|
||||
}
|
||||
@@ -74,8 +74,8 @@ class UIItemInventoryCatBar(
|
||||
val iconIndex = arrayOf(12, 16, 17, 13)
|
||||
|
||||
|
||||
println("[UIItemInventoryCatBar] relativeStartX: $relativeStartX")
|
||||
println("[UIItemInventoryCatBar] posX: $posX")
|
||||
//println("[UIItemInventoryCatBar] relativeStartX: $relativeStartX")
|
||||
//println("[UIItemInventoryCatBar] posX: $posX")
|
||||
|
||||
sideButtons = Array(iconIndex.size) { index ->
|
||||
val iconPosX = if (index < 2)
|
||||
|
||||
@@ -2,6 +2,7 @@ package net.torvald.terrarum.blockproperties
|
||||
|
||||
import net.torvald.gdx.graphics.Cvec
|
||||
import net.torvald.terrarum.AppLoader
|
||||
import net.torvald.terrarum.AppLoader.printdbg
|
||||
import net.torvald.terrarum.AppLoader.printmsg
|
||||
import net.torvald.terrarum.ReferencingRanges
|
||||
import net.torvald.terrarum.gameworld.FluidType
|
||||
@@ -68,6 +69,8 @@ object BlockCodex {
|
||||
dynamicToVirtualMap[id] = virtualIDMax
|
||||
repeat(DYNAMIC_RANDOM_CASES) { i ->
|
||||
setProp(virtualIDMax - i, it)
|
||||
printdbg(this, "Block ID $id -> Virtual ID ${virtualIDMax - i}, baseLum: ${blockProps[virtualIDMax - i]?.baseLumCol}")
|
||||
|
||||
virtualPropsCount += 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user