Skip to content

Commit 3f6413f

Browse files
Version 1.1.2-forge-119
- Fixed the texts to match the mod name - Fixed the wrong display
1 parent f41986a commit 3f6413f

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ plugins {
1919
apply plugin: 'org.spongepowered.mixin'
2020
apply plugin: 'org.parchmentmc.librarian.forgegradle'
2121

22-
version = '1.1.1'
22+
version = '1.1.2'
2323
group = 'com.thaddev.iw2thshortbows' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2424
archivesBaseName = 'iw2thshortbows'
2525

src/main/java/com/thaddev/iw2thshortbows/IWant2TryHardsShortbows.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class IWant2TryHardsShortbows {
2525
public static final String MODID = "iw2thshortbows";
2626
public static final Logger LOGGER = LogUtils.getLogger();
2727
public static IWant2TryHardsShortbows instance;
28-
public static String VERSION = "1.1.1";
28+
public static String VERSION = "1.1.2";
2929

3030
public static final String MESSAGE_WELCOME = "message.iw2thshortbows.welcome";
3131
public static final String SCREEN_VERSION_MISMATCH = "menu.iw2thshortbows.modmismatch";

src/main/java/com/thaddev/iw2thshortbows/client/ClientForgeEvents.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public static void onRenderHud(final RenderGuiOverlayEvent.Post event) {
1919
Minecraft.getInstance().font.drawShadow(event.getPoseStack(), Utils.fromNoTag("(%$white)message displayed when you join!"), 10, 42, 100);
2020
Minecraft.getInstance().font.drawShadow(event.getPoseStack(), Utils.fromNoTag("(%$gold)(%$underline)If you encounter a bug and report it, Anything that happens in"), 10, 62, 100);
2121
Minecraft.getInstance().font.drawShadow(event.getPoseStack(), Utils.fromNoTag("(%$gold)(%$underline)this server connection instance will not be considered valid evidence."), 10, 74, 100);
22+
Minecraft.getInstance().font.drawShadow(event.getPoseStack(), Utils.fromNoTag("(%$gold)(%$underline)(Unless it's a bug with the Version detection system itself)"), 10, 86, 100);
2223
}
2324
}
2425
}

src/main/java/com/thaddev/iw2thshortbows/client/gui/ModMismatchScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected void init() {
6161
this.minecraft.setScreen(this);
6262
}, "https://www.curseforge.com/minecraft/mc-mods/iwant2tryhards-shortbows/files", false)),
6363
(pButton, pPoseStack, pMouseX, pMouseY) ->
64-
renderTooltip(pPoseStack, Component.translatable(OPEN_GITHUB), pMouseX, pMouseY)
64+
renderTooltip(pPoseStack, Component.translatable(OPEN_CURSEFORGE), pMouseX, pMouseY)
6565
)
6666
);
6767
this.addRenderableWidget(drawCenteredButton((this.width / 2), pos + 25, 150, 20, true, Component.translatable(OPEN_MODRINTH),

src/main/java/com/thaddev/iw2thshortbows/mixins/ClientPacketListenerMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ private void handleSystemChat(ClientboundSystemChatPacket packet, CallbackInfo c
3535
// example: [IWant2TryHardsShortbows] https://github.com/MyNameTsThad/IW2THs-Shortbows/blob/forge-119/README.md#ignore-if-you-did-not-come-from-an-in-game-chat-message (versionid:forge-mc1.19-2.0.0)
3636
String[] split = message.split(" ");
3737
String serverVersionString = split[2].substring(11, split[2].length() - 1);
38-
String serverVersion = serverVersionString.split("-")[2];
39-
if (serverVersionString.split("-").length > 3) {
38+
String serverVersion = serverVersionString.split("-")[1];
39+
if (serverVersionString.split("-").length > 2) {
4040
serverVersion += "-";
41-
serverVersion += serverVersionString.split("-")[3];
41+
serverVersion += serverVersionString.split("-")[2];
4242
}
4343
String serverModLoader = serverVersionString.split("-")[0];
4444

src/main/resources/META-INF/mods.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ license="MIT"
44

55
[[mods]]
66
modId = "iw2thshortbows"
7-
version = "1.1.1" #mandatory
7+
version = "1.1.2" #mandatory
88
displayName = "IWant2TryHard's Shortbows" #mandatory
99
#updateJSONURL="https://change.me.example.invalid/updates.json" #optional
1010
displayURL = "https://github.com/MyNameTsThad/IW2THs-Shortbows" #optional

0 commit comments

Comments
 (0)