Skip to content

Commit f0f5d69

Browse files
committed
update to new textile
1 parent ec25c9a commit f0f5d69

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ plugins {
1717

1818
toolkitLoomHelper {
1919
useOneConfig {
20-
version = "1.0.0-alpha.72"
20+
version = "1.0.0-alpha.77"
2121
loaderVersion = "1.1.0-alpha.44"
2222

2323
usePolyMixin = true

src/main/java/org/polyfrost/crashpatch/mixin/MixinGuiConnecting.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.polyfrost.crashpatch.mixin;
22

33
import dev.deftu.omnicore.client.OmniDesktop;
4-
import dev.deftu.textile.minecraft.MinecraftTextFormat;
4+
import dev.deftu.textile.minecraft.MCTextFormat;
55
import org.polyfrost.crashpatch.CrashPatch;
66
import org.polyfrost.crashpatch.hooks.MinecraftHook;
77
import net.minecraft.client.Minecraft;
@@ -30,7 +30,7 @@ private void drawWarningText(int mouseX, int mouseY, float partialTicks, Callbac
3030

3131
@Unique
3232
private String crashpatch$getText() {
33-
return MinecraftTextFormat.RED + "If Minecraft is stuck on this screen, please force close the game" + (CrashPatch.INSTANCE.isSkyclient() ? " and go to https://discord.gg/eh7tNFezct for support" : "") + ".";
33+
return MCTextFormat.RED + "If Minecraft is stuck on this screen, please force close the game" + (CrashPatch.INSTANCE.isSkyclient() ? " and go to https://discord.gg/eh7tNFezct for support" : "") + ".";
3434
}
3535

3636
@Override

src/main/kotlin/org/polyfrost/crashpatch/CrashPatch.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import net.minecraftforge.fml.common.event.FMLPreInitializationEvent
99
//#endif
1010

1111
import dev.deftu.omnicore.client.OmniClientCommands
12-
import dev.deftu.textile.minecraft.MinecraftTextFormat
12+
import dev.deftu.textile.minecraft.MCTextFormat
1313

1414
import java.io.File
1515
import org.apache.logging.log4j.LogManager
@@ -77,9 +77,9 @@ object CrashPatch
7777
}
7878
command.then(CommandManager.literal("reload").executes { ctx ->
7979
if (CrashScanStorage.downloadJson()) {
80-
ctx.source.showMessage("${MinecraftTextFormat.GREEN}[CrashPatch] Successfully reloaded JSON file!")
80+
ctx.source.displayMessage("${MCTextFormat.GREEN}[CrashPatch] Successfully reloaded JSON file!")
8181
} else {
82-
ctx.source.showMessage("${MinecraftTextFormat.RED}[CrashPatch] Failed to reload the JSON file!")
82+
ctx.source.displayMessage("${MCTextFormat.RED}[CrashPatch] Failed to reload the JSON file!")
8383
}
8484
1
8585
})

src/main/kotlin/org/polyfrost/crashpatch/crashes/CrashScanStorage.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.polyfrost.crashpatch.crashes
22

33
import com.google.gson.JsonObject
4-
import dev.deftu.textile.minecraft.MinecraftTextFormat
4+
import dev.deftu.textile.minecraft.MCTextFormat
55
import org.apache.logging.log4j.LogManager
66
import org.polyfrost.crashpatch.CrashPatch
77
import org.polyfrost.oneconfig.utils.v1.JsonUtils
@@ -109,7 +109,7 @@ object CrashScanStorage {
109109
val causeJson = cause.asJsonObject
110110
var theReport = report
111111
if (causeJson.has("unformatted") && causeJson["unformatted"].asBoolean) {
112-
theReport = MinecraftTextFormat.strip(theReport)
112+
theReport = MCTextFormat.strip(theReport)
113113
}
114114

115115
when (causeJson["method"].asString) {

0 commit comments

Comments
 (0)