Mark "is mod loaded" as internal property, so it don't bleed into other namespaces
This commit is contained in:
parent
8fbf7d4c2c
commit
bb501e2c7e
@ -31,7 +31,7 @@ import ru.dbotthepony.mc.otm.menu.MatteryMenuSlot
|
|||||||
import java.util.Collections.emptyIterator
|
import java.util.Collections.emptyIterator
|
||||||
import java.util.stream.Stream
|
import java.util.stream.Stream
|
||||||
|
|
||||||
val isCosmeticArmorLoaded by lazy {
|
internal val isCosmeticArmorLoaded by lazy {
|
||||||
ModList.get().isLoaded("cosmeticarmorreworked")
|
ModList.get().isLoaded("cosmeticarmorreworked")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ import java.util.Collections.emptyIterator
|
|||||||
import java.util.stream.Stream
|
import java.util.stream.Stream
|
||||||
import kotlin.collections.ArrayList
|
import kotlin.collections.ArrayList
|
||||||
|
|
||||||
val isCuriosLoaded by lazy {
|
internal val isCuriosLoaded by lazy {
|
||||||
ModList.get().isLoaded(CuriosApi.MODID)
|
ModList.get().isLoaded(CuriosApi.MODID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ import ru.dbotthepony.mc.otm.menu.MatteryMenuSlot
|
|||||||
import ru.dbotthepony.mc.otm.menu.makeSlots
|
import ru.dbotthepony.mc.otm.menu.makeSlots
|
||||||
import ru.dbotthepony.mc.otm.registry.MDeferredRegister
|
import ru.dbotthepony.mc.otm.registry.MDeferredRegister
|
||||||
|
|
||||||
val isIronChestLoaded by lazy {
|
internal val isIronChestLoaded by lazy {
|
||||||
ModList.get().isLoaded(IronChests.MODID)
|
ModList.get().isLoaded(IronChests.MODID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import ru.dbotthepony.mc.otm.menu.makeSlots
|
|||||||
import ru.dbotthepony.mc.otm.registry.MDeferredRegister
|
import ru.dbotthepony.mc.otm.registry.MDeferredRegister
|
||||||
import kotlin.collections.toTypedArray
|
import kotlin.collections.toTypedArray
|
||||||
|
|
||||||
val isIronShulkersLoaded by lazy {
|
internal val isIronShulkersLoaded by lazy {
|
||||||
ModList.get().isLoaded(IronShulkerBoxes.MODID)
|
ModList.get().isLoaded(IronShulkerBoxes.MODID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import net.minecraft.world.inventory.Slot
|
|||||||
import net.neoforged.fml.ModList
|
import net.neoforged.fml.ModList
|
||||||
import ru.dbotthepony.mc.otm.client.render.MGUIGraphics
|
import ru.dbotthepony.mc.otm.client.render.MGUIGraphics
|
||||||
|
|
||||||
val isItemBordersLoaded by lazy {
|
internal val isItemBordersLoaded by lazy {
|
||||||
ModList.get().isLoaded("itemborders")
|
ModList.get().isLoaded("itemborders")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user