File tree Expand file tree Collapse file tree
java/gjum/minecraft/mapsync/common
fabric/src/main/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # https://editorconfig.org
2+
3+ [* .const ]
4+ insert_final_newline = false
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ subprojects {
2121 minecraft " com.mojang:minecraft:${ rootProject.minecraft_version} "
2222 mappings loom. layered() {
2323 officialMojangMappings()
24- parchment(" org.parchmentmc.data:parchment- ${ project.minecraft_version } :${ project.parchment_version} @zip" )
24+ parchment(" org.parchmentmc.data:${ project.parchment_name } :${ project.parchment_version} @zip" )
2525 }
2626 }
2727}
Original file line number Diff line number Diff line change 1- plugins {
2- // https://github.com/KyoriPowered/blossom/releases
3- id(" net.kyori.blossom" ) version " 1.3.1"
4- }
5-
61architectury {
72 injectInjectables = false
83 common(rootProject. enabled_platforms. split(" ," ))
@@ -21,18 +16,11 @@ dependencies {
2116 modCompileOnly(" maven.modrinth:xaeros-world-map:CkZVhVE0" )
2217}
2318
24- tasks {
25- blossom {
26- replaceToken (
27- " %VERSION%" ,
28- project. version,
29- " src/main/java/gjum/minecraft/mapsync/common/MapSyncMod.java"
30- )
31- }
32- }
33-
3419processResources {
3520 filesMatching(" assets/mapsync/lang/en_us.json" ) {
3621 expand(rootProject. properties)
3722 }
23+ filesMatching(" mapsync.version.const" ) {
24+ expand(rootProject. properties)
25+ }
3826}
Original file line number Diff line number Diff line change 66import gjum .minecraft .mapsync .common .data .*;
77import gjum .minecraft .mapsync .common .net .SyncClient ;
88import gjum .minecraft .mapsync .common .net .packet .*;
9+ import java .io .IOException ;
10+ import java .io .InputStream ;
11+ import java .nio .charset .StandardCharsets ;
912import net .minecraft .client .KeyMapping ;
1013import net .minecraft .client .Minecraft ;
1114import net .minecraft .client .multiplayer .ServerData ;
2427import static gjum .minecraft .mapsync .common .Cartography .chunkTileFromLevel ;
2528
2629public abstract class MapSyncMod {
27- public static final String VERSION = "%VERSION%" ;
30+ public static final String VERSION ; static {
31+ final InputStream in = MapSyncMod .class .getResourceAsStream ("/mapsync.version.const" );
32+ if (in == null ) {
33+ throw new ExceptionInInitializerError (new NullPointerException ("'mapsync.version.const' const is missing!" ));
34+ }
35+ try (in ) {
36+ VERSION = new String (in .readAllBytes (), StandardCharsets .UTF_8 ).trim ();
37+ }
38+ catch (final IOException e ) {
39+ throw new ExceptionInInitializerError (e );
40+ }
41+ }
2842
2943 private static final Minecraft mc = Minecraft .getInstance ();
3044
Original file line number Diff line number Diff line change 11{
22 "key.map-sync.openGui" : " Open GUI" ,
3- "category.map-sync " : " ${mod_display_name}"
3+ "key. category.mapsync.general " : " ${mod_display_name}"
44}
Original file line number Diff line number Diff line change 33 "minVersion" : " 0.8" ,
44 "package" : " gjum.minecraft.mapsync.common.mixins" ,
55 "compatibilityLevel" : " JAVA_21" ,
6- "mixins" : [],
76 "client" : [
87 " MixinClientPacketListener"
98 ],
10- "server" : [],
119 "injectors" : {
1210 "defaultRequire" : 1
1311 }
Original file line number Diff line number Diff line change 1+ ${mod_version}
Original file line number Diff line number Diff line change 22 "required" : true ,
33 "minVersion" : " 0.8" ,
44 "package" : " gjum.minecraft.mapsync.fabric.mixins" ,
5- "compatibilityLevel" : " JAVA_17" ,
6- "mixins" : [],
5+ "compatibilityLevel" : " JAVA_21" ,
76 "client" : [
87
98 ],
10- "server" : [],
119 "injectors" : {
1210 "defaultRequire" : 1
1311 }
Original file line number Diff line number Diff line change 22 "required" : true ,
33 "minVersion" : " 0.8" ,
44 "package" : " gjum.minecraft.mapsync.forge.mixins" ,
5- "compatibilityLevel" : " JAVA_17" ,
6- "mixins" : [],
5+ "compatibilityLevel" : " JAVA_21" ,
76 "client" : [
87
98 ],
10- "server" : [],
119 "injectors" : {
1210 "defaultRequire" : 1
1311 }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ mod_issues_url=https://github.com/CivPlatform/map-sync/issues
1313
1414minecraft_version =1.21.11
1515# https://parchmentmc.org/docs/getting-started
16- # parchment_name=parchment-1.21
16+ parchment_name =parchment-1.21.11
1717parchment_version =2025.12.20
1818enabled_platforms =fabric
1919
@@ -25,4 +25,4 @@ forge_version=1.21.1-61.1.1
2525forge_major_version =61
2626
2727# Architectuy Loom 1.14 is not available for JM 6.0.0
28- loom.ignoreDependencyLoomVersionValidation =true
28+ loom.ignoreDependencyLoomVersionValidation =true
You can’t perform that action at this time.
0 commit comments