Skip to content

Commit

Permalink
fix: Fix JourneyMap compat creating waypoints for waystone types it s…
Browse files Browse the repository at this point in the history
…houldn't
  • Loading branch information
BlayTheNinth committed Dec 14, 2023
1 parent 9200d68 commit a86913c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions fabric/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ dependencies {
if (jei_minecraft_version == minecraft_version) {
modRuntimeOnly "mezz.jei:jei-$jei_minecraft_version-fabric:$jei_version"
}
modCompileOnly group: 'info.journeymap', name: 'journeymap-api', version: project.journeymap_api_fabric_version, changing: true
// modRuntimeOnly "curse.maven:journeymap-${project.journeymap_project_id}:${project.journeymap_fabric_file_id}"
modImplementation group: 'info.journeymap', name: 'journeymap-api', version: project.journeymap_api_fabric_version, changing: true, transitive: false
modRuntimeOnly "curse.maven:journeymap-${project.journeymap_project_id}:${project.journeymap_fabric_file_id}"

modCompileOnly "com.terraformersmc:modmenu:$modmenu_version"
modCompileOnly "curse.maven:jade-324717:$jade_forge_version"
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ modrinth_project_id = LOpKHB2A

# Journeymap v5.8.3
journeymap_project_id=32274
journeymap_forge_file_id=4385902
journeymap_fabric_file_id=4385898
journeymap_api_fabric_version=1.18.2-1.8-fabric-SNAPSHOT
journeymap_api_common_version=1.18.1-1.8-SNAPSHOT
journeymap_api_forge_version=1.18.1-1.8-SNAPSHOT
journeymap_forge_file_id=4873840
journeymap_fabric_file_id=4873841
journeymap_api_fabric_version=1.20.2-1.9-fabric-SNAPSHOT
journeymap_api_common_version=1.20.2-1.9-SNAPSHOT
journeymap_api_forge_version=1.20.2-1.9-SNAPSHOT

# Minecraft
minecraft_version = 1.20.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private static boolean shouldManageWaypoints() {
}

public void onWaystoneUpdateReceived(WaystoneUpdateReceivedEvent event) {
if (shouldManageWaypoints()) {
if (shouldManageWaypoints() && isSupportedWaystoneType(event.getWaystone().getWaystoneType())) {
runWhenJourneyMapIsReady(() -> updateWaypoint(event.getWaystone()));
}
}
Expand Down

0 comments on commit a86913c

Please sign in to comment.