File tree 1 file changed +8
-2
lines changed
src/main/kotlin/dev/sterner/common/components
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ class VoidBoundRevelationComponent(private val player: Player) : AutoSyncedCompo
17
17
18
18
var thoughtsQueue: MutableMap <Component , ThoughtData > = mutableMapOf ()
19
19
20
- var unlockedItemAbilities = mutableSetOf (ItemAbility .NONE )
20
+ var unlockedItemAbilities = defaultAbilities()
21
+
22
+ private fun defaultAbilities (): MutableSet <ItemAbility > {
23
+ return mutableSetOf (ItemAbility .NONE , ItemAbility .MINING_3X3 )
24
+ }
21
25
22
26
fun addUnlockedItemAbility (ability : ItemAbility ) {
23
27
unlockedItemAbilities.add(ability)
@@ -151,7 +155,9 @@ class VoidBoundRevelationComponent(private val player: Player) : AutoSyncedCompo
151
155
}
152
156
153
157
unlockedItemAbilities.clear()
154
- unlockedItemAbilities.add(ItemAbility .NONE )
158
+ defaultAbilities().forEach{
159
+ unlockedItemAbilities.add(it)
160
+ }
155
161
val unlockedList = tag.getList(" UnlockedItems" , 10 )
156
162
for (i in 0 until unlockedList.size) {
157
163
val item = unlockedList.getCompound(i)
You can’t perform that action at this time.
0 commit comments