blob: 8e5e71297dc71e71c8362939e0b5627aff7c1548 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package com.dulkirfabric.features
import com.dulkirfabric.DulkirModFabric.mc
import com.dulkirfabric.config.DulkirConfig
import net.minecraft.client.gui.screen.ingame.HandledScreen
object InventoryScale {
/**
* Called every render frame, so don't put anything expensive in here.
*/
fun getScale(): Float {
if (DulkirConfig.configOptions.invScaleBool && mc.currentScreen is HandledScreen<*>) {
return DulkirConfig.configOptions.inventoryScale
}
return 1f
}
}
|