File tree 2 files changed +5
-2
lines changed
src/main/java/is/meh/minecraft/lan_announcer
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ yarn_mappings=1.20.4+build.3
9
9
loader_version =0.15.3
10
10
11
11
# Mod Properties
12
- mod_version =1.0.2
12
+ mod_version =1.1.0
13
13
maven_group =is.meh.minecraft.lan_announcer
14
14
archives_base_name =lanannouncer
15
15
Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ private void onServerStarted(MinecraftServer server) {
44
44
String motd = "[MOTD]" + sanitizeMOTD (server .getServerMotd ()) + "[/MOTD]" ;
45
45
String port = "[AD]" + server .getServerPort () + "[/AD]" ;
46
46
47
- byte [] message = (motd + port ).getBytes ();
47
+ // https://github.com/meh-is/LANAnnouncer/issues/5#issuecomment-1873572736
48
+ String uuid = "[LAN_SERVER_ID]" + UUID .randomUUID () + "[/LAN_SERVER_ID]" ;
49
+
50
+ byte [] message = (motd + port + uuid ).getBytes ();
48
51
49
52
// Initialize and start the IPv4 and IPv6 announcers
50
53
ipv4Announcer = new ServerAnnouncer ("224.0.2.60" , message );
You can’t perform that action at this time.
0 commit comments