mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
fixed a bug where a dynamic item would not get saved/loaded at all
This commit is contained in:
@@ -10,6 +10,8 @@ import net.torvald.terrarum.blockproperties.Fluid
|
||||
import net.torvald.terrarum.gameactors.ActorID
|
||||
import net.torvald.terrarum.gameactors.WireActor
|
||||
import net.torvald.terrarum.gameitems.ItemID
|
||||
import net.torvald.terrarum.itemproperties.ItemRemapTable
|
||||
import net.torvald.terrarum.itemproperties.ItemTable
|
||||
import net.torvald.terrarum.modulebasegame.gameactors.IngamePlayer
|
||||
import net.torvald.terrarum.realestate.LandUtil
|
||||
import net.torvald.terrarum.utils.*
|
||||
@@ -128,6 +130,9 @@ open class GameWorld() : Disposable {
|
||||
internal var genver = -1 // only gets used when the game saves and loads
|
||||
internal var comp = -1 // only gets used when the game saves and loads
|
||||
|
||||
internal val dynamicItemInventory = ItemTable()
|
||||
internal val dynamicToStaticTable = ItemRemapTable()
|
||||
|
||||
@Deprecated("This value is only used for savegames; DO NOT USE THIS", ReplaceWith("INGAME.actorContainerActive", "net.torvald.terrarum.INGAME"))
|
||||
internal val actors = ArrayList<ActorID>() // only filled up on save and load; DO NOT USE THIS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user