Skip to content

Commit df9fc19

Browse files
Version 1.1.0-patch2-forge-119
- fix version parsing
1 parent 0c686f5 commit df9fc19

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
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.0-patch1'
22+
version = '1.1.0-patch2'
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
@@ -26,7 +26,7 @@ public class IWant2TryHardsShortbows {
2626
public static final String MODID = "iw2thshortbows";
2727
public static final Logger LOGGER = LogUtils.getLogger();
2828
public static IWant2TryHardsShortbows instance;
29-
public static String VERSION = "1.1.0-patch1";
29+
public static String VERSION = "1.1.0-patch2";
3030

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ private void handleSystemChat(ClientboundSystemChatPacket packet, CallbackInfo c
3636
String[] split = message.split(" ");
3737
String serverVersionString = split[2].substring(11, split[2].length() - 1);
3838
String serverVersion = serverVersionString.split("-")[2];
39-
if (serverVersionString.split("-").length > 3)
39+
if (serverVersionString.split("-").length > 3) {
40+
serverVersion += "-";
4041
serverVersion += serverVersionString.split("-")[3];
42+
}
4143
String serverModLoader = serverVersionString.split("-")[0];
4244

4345
String clientModLoader = ClientBrandRetriever.getClientModName();

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.0-patch1" #mandatory
7+
version = "1.1.0-patch2" #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)