codices serialised into the savegame

This commit is contained in:
minjaesong
2021-09-04 20:45:57 +09:00
parent 6bea9c9f07
commit 21a7a38477
10 changed files with 52 additions and 46 deletions

View File

@@ -55,7 +55,7 @@ class BlockCodex {
virtualToTile.clear()
}
private constructor()
internal constructor()
/**
* Later entry (possible from other modules) will replace older ones

View File

@@ -23,9 +23,9 @@ class WireCodex {
wireProps.clear()
}
private constructor() {
internal constructor() {
try {
Terrarum.ItemCodex["testtesttest"]
Terrarum.itemCodex["testtesttest"]
}
catch (e: UninitializedPropertyAccessException) {
throw UninitializedPropertyAccessException("ItemCodex not initialised!")