Mark "is mod loaded" as internal property, so it don't bleed into other namespaces

This commit is contained in:
DBotThePony 2025-04-10 08:31:26 +07:00
parent 8fbf7d4c2c
commit bb501e2c7e
Signed by: DBot
GPG Key ID: DCC23B5715498507
5 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ import ru.dbotthepony.mc.otm.menu.MatteryMenuSlot
import java.util.Collections.emptyIterator
import java.util.stream.Stream
val isCosmeticArmorLoaded by lazy {
internal val isCosmeticArmorLoaded by lazy {
ModList.get().isLoaded("cosmeticarmorreworked")
}

View File

@ -35,7 +35,7 @@ import java.util.Collections.emptyIterator
import java.util.stream.Stream
import kotlin.collections.ArrayList
val isCuriosLoaded by lazy {
internal val isCuriosLoaded by lazy {
ModList.get().isLoaded(CuriosApi.MODID)
}

View File

@ -22,7 +22,7 @@ import ru.dbotthepony.mc.otm.menu.MatteryMenuSlot
import ru.dbotthepony.mc.otm.menu.makeSlots
import ru.dbotthepony.mc.otm.registry.MDeferredRegister
val isIronChestLoaded by lazy {
internal val isIronChestLoaded by lazy {
ModList.get().isLoaded(IronChests.MODID)
}

View File

@ -24,7 +24,7 @@ import ru.dbotthepony.mc.otm.menu.makeSlots
import ru.dbotthepony.mc.otm.registry.MDeferredRegister
import kotlin.collections.toTypedArray
val isIronShulkersLoaded by lazy {
internal val isIronShulkersLoaded by lazy {
ModList.get().isLoaded(IronShulkerBoxes.MODID)
}

View File

@ -5,7 +5,7 @@ import net.minecraft.world.inventory.Slot
import net.neoforged.fml.ModList
import ru.dbotthepony.mc.otm.client.render.MGUIGraphics
val isItemBordersLoaded by lazy {
internal val isItemBordersLoaded by lazy {
ModList.get().isLoaded("itemborders")
}