mirror of
https://code.chipmunk.land/ChomeNS/chipmunkmod.git
synced 2026-03-31 03:12:04 +00:00
feat: update to 26.1
This commit is contained in:
parent
d019a7e592
commit
9e26853847
5 changed files with 16 additions and 18 deletions
18
build.gradle
18
build.gradle
|
|
@ -1,5 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'net.fabricmc.fabric-loom-remap' version "${loom_version}"
|
id 'net.fabricmc.fabric-loom' version "${loom_version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
base.archivesName = project.archives_base_name
|
base.archivesName = project.archives_base_name
|
||||||
|
|
@ -11,7 +11,7 @@ repositories {
|
||||||
|
|
||||||
// adventure snapshots
|
// adventure snapshots
|
||||||
maven {
|
maven {
|
||||||
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
|
url = "https://central.sonatype.com/repository/maven-snapshots/"
|
||||||
mavenContent { snapshotsOnly() }
|
mavenContent { snapshotsOnly() }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -19,11 +19,10 @@ repositories {
|
||||||
dependencies {
|
dependencies {
|
||||||
// To change the versions see the gradle.properties file
|
// To change the versions see the gradle.properties file
|
||||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||||
mappings loom.officialMojangMappings()
|
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
|
||||||
|
|
||||||
// Fabric API
|
// Fabric API
|
||||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||||
|
|
||||||
// LuaJ
|
// LuaJ
|
||||||
include(implementation("org.luaj:luaj-jse:3.0.1"))
|
include(implementation("org.luaj:luaj-jse:3.0.1"))
|
||||||
|
|
@ -34,7 +33,7 @@ dependencies {
|
||||||
include(implementation("io.leangen.geantyref:geantyref:2.0.1"))
|
include(implementation("io.leangen.geantyref:geantyref:2.0.1"))
|
||||||
|
|
||||||
// Adventure
|
// Adventure
|
||||||
include(modImplementation("net.kyori:adventure-platform-fabric:6.8.0"))
|
include(implementation("net.kyori:adventure-platform-fabric:6.9.0-SNAPSHOT"))
|
||||||
include(implementation("net.kyori:adventure-text-serializer-gson:4.26.1"))
|
include(implementation("net.kyori:adventure-text-serializer-gson:4.26.1"))
|
||||||
include(implementation("net.kyori:adventure-text-serializer-legacy:4.26.1"))
|
include(implementation("net.kyori:adventure-text-serializer-legacy:4.26.1"))
|
||||||
}
|
}
|
||||||
|
|
@ -48,11 +47,10 @@ processResources {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
|
it.options.release = 25
|
||||||
it.options.release = 21
|
|
||||||
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_21
|
sourceCompatibility = JavaVersion.VERSION_25
|
||||||
targetCompatibility = JavaVersion.VERSION_21
|
targetCompatibility = JavaVersion.VERSION_25
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ org.gradle.parallel=true
|
||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/develop
|
# check these on https://fabricmc.net/develop
|
||||||
minecraft_version=1.21.11
|
minecraft_version=26.1
|
||||||
loader_version=0.18.4
|
loader_version=0.18.5
|
||||||
loom_version=1.15-SNAPSHOT
|
loom_version=1.15-SNAPSHOT
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
|
|
@ -14,5 +14,5 @@ org.gradle.parallel=true
|
||||||
archives_base_name = chipmunkmod
|
archives_base_name = chipmunkmod
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
fabric_version=0.141.3+1.21.11
|
fabric_version=0.144.3+26.1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ public class ItemCommand {
|
||||||
|
|
||||||
if (player == null || connection == null) return Command.SINGLE_SUCCESS;
|
if (player == null || connection == null) return Command.SINGLE_SUCCESS;
|
||||||
|
|
||||||
final ItemStack stack = getItem(context, "item").createItemStack(count, false);
|
final ItemStack stack = getItem(context, "item").createItemStack(count);
|
||||||
|
|
||||||
final int slot = 36 + player.getInventory().getSelectedSlot();
|
final int slot = 36 + player.getInventory().getSelectedSlot();
|
||||||
connection.send(new ServerboundSetCreativeModeSlotPacket(slot, stack));
|
connection.send(new ServerboundSetCreativeModeSlotPacket(slot, stack));
|
||||||
|
|
|
||||||
|
|
@ -245,7 +245,7 @@ public class CommandCore implements Listener {
|
||||||
final ClientPacketListener connection = client.getConnection();
|
final ClientPacketListener connection = client.getConnection();
|
||||||
if (player == null || connection == null) return;
|
if (player == null || connection == null) return;
|
||||||
|
|
||||||
final int distanceSquared = player.chunkPosition().distanceSquared(new ChunkPos(origin));
|
final int distanceSquared = player.chunkPosition().distanceSquared(ChunkPos.containing(origin));
|
||||||
final int distance = (int) Math.sqrt(Math.abs(distanceSquared));
|
final int distance = (int) Math.sqrt(Math.abs(distanceSquared));
|
||||||
|
|
||||||
final int simulationDistance = connection.getLevel().getServerSimulationDistance();
|
final int simulationDistance = connection.getLevel().getServerSimulationDistance();
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,9 @@
|
||||||
],
|
],
|
||||||
|
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.18.3",
|
"fabricloader": ">=0.18.5",
|
||||||
"fabric-api": "*",
|
"fabric-api": "*",
|
||||||
"minecraft": "1.21.11",
|
"minecraft": "~26.1",
|
||||||
"java": ">=21"
|
"java": ">=25"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue