File tree Expand file tree Collapse file tree 5 files changed +44
-10
lines changed
common/src/main/java/sh/okx/civmodern/common/radar Expand file tree Collapse file tree 5 files changed +44
-10
lines changed Original file line number Diff line number Diff line change 10
10
import com .mojang .blaze3d .vertex .VertexFormat .Mode ;
11
11
import com .mojang .math .Matrix4f ;
12
12
import com .mojang .math .Vector3f ;
13
+ import java .io .IOException ;
14
+ import java .io .InputStream ;
15
+ import java .net .URL ;
13
16
import java .util .Collections ;
14
17
import java .util .HashSet ;
15
18
import java .util .Random ;
48
51
49
52
public class Radar {
50
53
54
+ private static boolean hideY ;
55
+
56
+ static {
57
+ URL resource = Radar .class .getResource ("/civmc" );
58
+ if (resource != null ) {
59
+ hideY = true ;
60
+ } else {
61
+ hideY = false ;
62
+ }
63
+ }
64
+
51
65
private final EventBus eventBus ;
52
66
private final ColourProvider colourProvider ;
53
67
private final CivMapConfig config ;
@@ -79,7 +93,7 @@ public void onClientTick(ClientTickEvent event) {
79
93
}
80
94
81
95
private boolean hideY () {
82
- return false ;
96
+ return hideY ;
83
97
}
84
98
85
99
public void onWorldTickPing (ClientTickEvent event ) {
Original file line number Diff line number Diff line change @@ -76,16 +76,26 @@ publishing {
76
76
}
77
77
}
78
78
79
+ import net.fabricmc.loom.task.RemapJarTask
80
+
81
+ task remapCivMc (type : RemapJarTask ) {
82
+ inputFile. set shadowJar. archiveFile
83
+ dependsOn shadowJar
84
+ classifier " civmc-fabric"
85
+ from sourceSets. main. output
86
+ from ' ../civmc'
87
+ }
88
+
79
89
task cleanJar (type : Delete ) {
80
90
delete fileTree(' ../dist' ) {
81
- include " *-fabric .jar"
91
+ include " *-forge* .jar"
82
92
}
83
93
}
84
94
85
95
task copyJar (type : Copy ) {
86
- from remapJar
96
+ dependsOn cleanJar
97
+ from remapJar, remapCivMc
87
98
into ' ../dist'
88
99
}
89
100
90
- build. dependsOn copyJar
91
- copyJar. dependsOn cleanJar
101
+ build. dependsOn copyJar
Original file line number Diff line number Diff line change @@ -84,16 +84,26 @@ publishing {
84
84
}
85
85
}
86
86
87
+ import net.fabricmc.loom.task.RemapJarTask
88
+
89
+ task remapCivMc (type : RemapJarTask ) {
90
+ inputFile. set shadowJar. archiveFile
91
+ dependsOn shadowJar
92
+ classifier " civmc-forge"
93
+ from sourceSets. main. output
94
+ from ' ../civmc'
95
+ }
96
+
87
97
task cleanJar (type : Delete ) {
88
98
delete fileTree(' ../dist' ) {
89
- include " *-forge.jar"
99
+ include " *-forge* .jar"
90
100
}
91
101
}
92
102
93
103
task copyJar (type : Copy ) {
94
- from remapJar
104
+ dependsOn cleanJar
105
+ from remapJar, remapCivMc
95
106
into ' ../dist'
96
107
}
97
108
98
- build. dependsOn copyJar
99
- copyJar. dependsOn cleanJar
109
+ build. dependsOn copyJar
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ minecraft_version=1.18.2
4
4
enabled_platforms =fabric,forge
5
5
6
6
archives_base_name =civmodern
7
- mod_version =1.5
7
+ mod_version =1.5.1
8
8
maven_group =sh.okx.civmodern
9
9
10
10
architectury_version =4.2.50
You can’t perform that action at this time.
0 commit comments