Skip to content

Commit 395383b

Browse files
committed
1.19
1 parent 95cccad commit 395383b

5 files changed

Lines changed: 13 additions & 9 deletions

File tree

build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
1313
apply plugin: 'eclipse'
1414
apply plugin: 'maven-publish'
1515

16-
version = '1.4.0'
16+
version = '1.5.0'
1717
group = 'simpleircbridge' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
1818
archivesBaseName = 'simpleircbridge'
1919

@@ -33,7 +33,7 @@ minecraft {
3333
//
3434
// Use non-default mappings at your own risk. They may not always work.
3535
// Simply re-run your setup task after changing the mappings to update your workspace.
36-
mappings channel: 'official', version: '1.18.1'
36+
mappings channel: 'official', version: '1.19.2'
3737

3838
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Currently, this location cannot be changed from the default.
3939

@@ -128,7 +128,7 @@ dependencies {
128128
// Specify the version of Minecraft to use. If this is any group other than 'net.minecraft', it is assumed
129129
// that the dep is a ForgeGradle 'patcher' dependency, and its patches will be applied.
130130
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
131-
minecraft 'net.minecraftforge:forge:1.18.1-39.0.59'
131+
minecraft 'net.minecraftforge:forge:1.19.2-43.1.64'
132132

133133
// Real mod deobf dependency examples - these get remapped to your current mappings
134134
// compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api") // Adds JEI API as a compile dependency
@@ -176,3 +176,7 @@ publishing {
176176
}
177177
}
178178
}
179+
180+
tasks.withType(JavaCompile).configureEach {
181+
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
182+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/simpleircbridge/GameEventHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public GameEventHandler(SimpleIRCBridge bridge) {
5353

5454
@SubscribeEvent
5555
public void serverChat(ServerChatEvent e) {
56-
String content = e.getMessage();
56+
String content = e.getRawText();
5757
if (SIBConfig.IRC_FORMATTING.get()) {
5858
content = IRCMinecraftConverter.convMinecraftToIRC(content);
5959
}

src/main/java/simpleircbridge/SimpleIRCBridge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void serverStopped(ServerStoppedEvent event) {
7171

7272
/* package-private */ void sendToMinecraft(String line) {
7373
if (this.mcServer != null) {
74-
this.mcServer.getPlayerList().getPlayers().forEach(player -> player.sendMessage(ForgeHooks.newChatWithLinks(line), player.getUUID()));
74+
this.mcServer.getPlayerList().getPlayers().forEach(player -> player.sendSystemMessage(ForgeHooks.newChatWithLinks(line)));
7575
}
7676
}
7777
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
77
modLoader="javafml" #mandatory
88
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
9-
loaderVersion="[39,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
9+
loaderVersion="[43,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
1010
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
1111
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
1212
license="All rights reserved"
@@ -43,7 +43,7 @@ This server-side mod allows you to relay all chat on the server to and from an I
4343
# Does this dependency have to exist - if not, ordering below must be specified
4444
mandatory=true #mandatory
4545
# The version range of the dependency
46-
versionRange="[39,)" #mandatory
46+
versionRange="[43,)" #mandatory
4747
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
4848
ordering="NONE"
4949
# Side this dependency is applied on - BOTH, CLIENT or SERVER
@@ -53,6 +53,6 @@ This server-side mod allows you to relay all chat on the server to and from an I
5353
modId="minecraft"
5454
mandatory=true
5555
# This version range declares a minimum of the current minecraft version up to but not including the next major version
56-
versionRange="[1.18.1,1.19)"
56+
versionRange="[1.19.2,1.20)"
5757
ordering="NONE"
5858
side="SERVER"

0 commit comments

Comments
 (0)