diff options
Diffstat (limited to 'src/main/kotlin/com/raeids/stratus/utils/ModCompatHooks.kt')
-rw-r--r-- | src/main/kotlin/com/raeids/stratus/utils/ModCompatHooks.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/kotlin/com/raeids/stratus/utils/ModCompatHooks.kt b/src/main/kotlin/com/raeids/stratus/utils/ModCompatHooks.kt index 48463a6..b28e9ea 100644 --- a/src/main/kotlin/com/raeids/stratus/utils/ModCompatHooks.kt +++ b/src/main/kotlin/com/raeids/stratus/utils/ModCompatHooks.kt @@ -4,6 +4,8 @@ import club.sk1er.patcher.config.PatcherConfig import com.llamalad7.betterchat.BetterChat import com.raeids.stratus.Stratus.isBetterChat import com.raeids.stratus.Stratus.isPatcher +import net.minecraft.client.Minecraft +import net.minecraft.client.gui.FontRenderer // This exists because mixin doesn't like dummy classes object ModCompatHooks { @@ -23,4 +25,7 @@ object ModCompatHooks { val extendedChatLength get() = if (isPatcher) 32667 else 0 + @JvmStatic + val fontRenderer: FontRenderer + get() = Minecraft.getMinecraft().fontRendererObj } |