Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ ChunkyMap is a map renderer for [Dynmap][dynmap] that uses [Chunky][chunky] to r

## Compatibility matrix

| ChunkyMap | Minecraft | Dynmap | Chunky | Branch | Spigot | Fabric |
| ---------- | --------------- | ------- | ------ | -------------- | ------ | ------ |
| 2.7.0 | 1.21.4 or older | 3.8 | 2.5.0 | [master][] | ✅ | ✅ |
| 2.6.0-pre4 | 1.19 or older | 3.2 | 2.4.4 | [chunky-2.4][] | ✅ | |
| 2.5.2 | 1.16 or older | 2.3-3.0 | 2.3.0 | [chunky-2.3][] | ✅ | |
| ChunkyMap | Minecraft | Dynmap | Chunky | Branch | Spigot | Fabric |
| ---------- | ------------- | ------- | ------ | -------------- | ------ | ------ |
| 2.7.0 | 26.2 or older | 3.8 | 2.5.0 | [master][] | ✅ | ✅ |
| 2.6.0-pre4 | 1.19 or older | 3.2 | 2.4.4 | [chunky-2.4][] | ✅ | |
| 2.5.2 | 1.16 or older | 2.3-3.0 | 2.3.0 | [chunky-2.3][] | ✅ | |

[master]: https://github.com/leMaik/ChunkyMap/tree/master
[chunky-2.4]: https://github.com/leMaik/ChunkyMap/tree/chunky-2.4
Expand Down
5 changes: 3 additions & 2 deletions chunkymap-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "com.gradleup.shadow" version "9.3.1"
id "com.gradleup.shadow" version "9.6.1"
}

repositories {
Expand Down Expand Up @@ -31,7 +31,8 @@ dependencies {

shadowJar {
configurations = [project.configurations.shadow]
exclude "META-INF"
archiveClassifier = "" // Overwrite-non-shadowed jar
exclude "META-INF/**"

dependencies {
// Explicitly exclude fastutil (otherwise included from chunky-core)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import se.llbit.chunky.entity.PlayerEntity;
import se.llbit.chunky.renderer.scene.Scene;
import se.llbit.chunky.world.ChunkPosition;
import se.llbit.chunky.world.Dimension;
import se.llbit.chunky.world.World;
import se.llbit.chunky.world.World.LoggedWarnings;
import se.llbit.log.Log;
Expand Down Expand Up @@ -181,15 +182,15 @@ public boolean render(MapChunkCache mapChunkCache, String mapName) {
}
}

private static int getChunkyDimension(String environment) {
private static Dimension.Identifier getChunkyDimension(String environment) {
switch (environment) {
case "nether":
return World.NETHER_DIMENSION;
return Dimension.Identifier.THE_NETHER;
case "the_end":
return World.END_DIMENSION;
return Dimension.Identifier.THE_END;
case "normal":
default:
return World.OVERWORLD_DIMENSION;
return Dimension.Identifier.OVERWORLD;
}
}

Expand All @@ -210,7 +211,7 @@ private static Collection<ChunkPosition> getChunksAround(int centerX, int center
ArrayList<ChunkPosition> chunks = new ArrayList<>((radius + 1) * (radius + 1));
for (int x = -radius; x <= radius; x++) {
for (int z = -radius; z <= radius; z++) {
chunks.add(ChunkPosition.get(centerX + x, centerZ + z));
chunks.add(new ChunkPosition(centerX + x, centerZ + z));
}
}
return chunks;
Expand Down
27 changes: 6 additions & 21 deletions chunkymap-fabric/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'net.fabricmc.fabric-loom-remap' version "${loom_version}"
id 'net.fabricmc.fabric-loom' version "${loom_version}"
id 'maven-publish'
id "com.gradleup.shadow" version "9.3.1"
id "com.gradleup.shadow" version "9.6.1"
}

base {
Expand All @@ -25,11 +25,10 @@ loom {
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
implementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"

implementation "se.llbit:chunky-core:${project.chunky_version}"

Expand All @@ -44,7 +43,8 @@ processResources {

shadowJar {
configurations = [project.configurations.shadow]
exclude "META-INF"
archiveClassifier = "" // Overwrite-non-shadowed jar
exclude "META-INF/**"

dependencies {
// Explicitly exclude fastutil (otherwise included from chunky-core)
Expand All @@ -53,21 +53,6 @@ shadowJar {
}
}

remapJar {
dependsOn shadowJar
mustRunAfter shadowJar
inputFile = file(tasks.shadowJar.archiveFile)
}

tasks.withType(JavaCompile).configureEach {
it.options.release = 21
}

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

// configure the maven publication
publishing {
publications {
Expand Down
8 changes: 4 additions & 4 deletions chunkymap-fabric/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.21.11
loader_version=0.18.4
loom_version=1.15-SNAPSHOT
minecraft_version=26.2
loader_version=0.19.3
loom_version=1.17-SNAPSHOT

# Dependencies
fabric_api_version=0.141.3+1.21.11
fabric_api_version=0.155.2+26.2
4 changes: 2 additions & 2 deletions chunkymap-fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"main": ["de.lemaik.chunkymap.ChunkyMapMod"]
},
"depends": {
"fabricloader": ">=0.18.4",
"minecraft": "~1.21.11",
"fabricloader": ">=${loader_version}",
"minecraft": "~${minecraft_version}",
"java": ">=21",
"fabric-api": "*"
},
Expand Down
5 changes: 3 additions & 2 deletions chunkymap-spigot/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "com.gradleup.shadow" version "9.3.1"
id "com.gradleup.shadow" version "9.6.1"
}

repositories {
Expand All @@ -25,5 +25,6 @@ processResources {

shadowJar {
configurations = [project.configurations.shadow]
exclude "META-INF"
archiveClassifier = "" // Overwrite-non-shadowed jar
exclude "META-INF/**"
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ org.gradle.parallel=true
org.gradle.configuration-cache=false

# Project Properties
version=2.7.0-pre2
version=2.7.0-pre3
group=de.lemaik.chunkymap
archives_base_name=chunkymap

chunky_version=2.5.0-SNAPSHOT.446.ga4b37eb
chunky_version=2.5.0-SNAPSHOT.471.g27f874b
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ pluginManagement {
}

rootProject.name = "chunkymap"
include("chunkymap-core", "chunkymap-spigot", "chunkymap-fabric")
include("chunkymap-core", "chunkymap-spigot", "chunkymap-fabric")