Skip to content

Commit 500f867

Browse files
committed
chore: Fix maven repository and also fixed gametest not running hopefully
1 parent bbdf7da commit 500f867

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

build.gradle.kts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ val minecraft = project.property("minecraft.version").toString()
3535
plugins {
3636
id("org.ajoberstar.grgit") version ("5.3.0")
3737
id("fabric-loom") version("1.10-SNAPSHOT") apply(false)
38-
id("dev.galacticraft.mojarn") version("0.6.1+19") apply(false)
38+
id("dev.galacticraft.mojarn") version("0.6.1+0") apply(false)
3939
id("net.neoforged.moddev") version("2.0.80") apply(false)
4040
id("com.diffplug.spotless") version("7.0.3") apply(false)
4141
}
@@ -191,13 +191,9 @@ subprojects {
191191
}
192192

193193
repositories {
194-
if (System.getenv().containsKey("NEXUS_REPOSITORY_URL")) {
195-
maven(System.getenv("NEXUS_REPOSITORY_URL")!!) {
196-
credentials {
197-
username = System.getenv("NEXUS_USER")
198-
password = System.getenv("NEXUS_PASSWORD")
199-
}
200-
}
194+
maven {
195+
name = "LocalGitRepo"
196+
url = layout.buildDirectory.dir("../maven").get().asFile.toURI()
201197
}
202198
}
203199
}

common/src/main/java/dev/galacticraft/dynamicdimensions/impl/DynamicDimensionRegistryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public boolean unloadDynamicDimension(@NotNull ResourceLocation id, @Nullable Pl
145145
if (!this.canCreateDimension(id)) return null;
146146
Constants.LOGGER.debug("Attempting to create dynamic dimension '{}'", id);
147147

148-
if (this.dimTypes.stream().anyMatch(t -> t == type)) {
148+
if (this.dimTypes.entrySet().stream().anyMatch(e -> e.getValue() == type)) {
149149
return null;
150150
}
151151

settings.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ pluginManagement {
22
repositories {
33
gradlePluginPortal()
44
mavenCentral()
5-
maven("https://repo.terradevelopment.net/repository/maven-releases") {
5+
maven("https://maven.teamgalacticraft.org") {
6+
// https://repo.terradevelopment.net/repository/maven-releases
67
// https://maven.galacticraft.net/repository/maven-releases
78
name = "Galacticraft"
89
content {

0 commit comments

Comments
 (0)