ok kotlin
This commit is contained in:
parent
f416cd69e5
commit
7b2d9b1bf4
@ -782,11 +782,13 @@ abstract class MatteryMenu(
|
||||
val allowedTypes = EnumMap<UpgradeType, BooleanSupplier>(UpgradeType::class.java)
|
||||
|
||||
for (value in UpgradeType.ALL) {
|
||||
allowedTypes[value] = mSynchronizer.boolean().delegate.also {
|
||||
val b = mSynchronizer.boolean().delegate.also {
|
||||
if (container != null) {
|
||||
it.accept(value in container.allowedUpgrades)
|
||||
}
|
||||
}::get as BooleanSupplier
|
||||
}
|
||||
|
||||
allowedTypes[value] = BooleanSupplier { b.get() }
|
||||
}
|
||||
|
||||
val syncContainer = container ?: SimpleContainer(count)
|
||||
|
Loading…
Reference in New Issue
Block a user