Skip to content

Commit

Permalink
Bump MaLiLib & Litematica
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Jan 18, 2025
1 parent 63ed5f2 commit ff57888
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 16 deletions.
43 changes: 33 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@ plugins {
id 'fabric-loom' version '1.9-SNAPSHOT'
}

//sourceCompatibility = JavaVersion.VERSION_21
//targetCompatibility = JavaVersion.VERSION_21

repositories {
maven { url 'https://masa.dy.fi/maven' }
maven { url 'https://maven.terraformersmc.com/releases/' }
maven { url 'https://jitpack.io' }
maven { url = 'https://masa.dy.fi/maven' }
maven { url = 'https://maven.fallenbreath.me/releases' }
maven { url = 'https://maven.terraformersmc.com/releases/' }
maven { url = 'https://jitpack.io' }
}

group = project.maven_group + "." + project.mod_id
base.archivesName = project.mod_file_name + '-' + project.minecraft_version_out
version = project.mod_version

dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.mappings_version}:v2"
Expand All @@ -32,6 +26,35 @@ dependencies {
include(modApi(fabricApi.module("fabric-resource-loader-v0", project.fabric_api_version)))

modCompileOnly "com.terraformersmc:modmenu:${project.mod_menu_version}"
// modRuntimeOnly 'me.fallenbreath:mixin-auditor:0.1.0'
}

base {
group = project.group + "." + project.mod_id
archivesName = project.mod_file_name + '-' + project.minecraft_version_out
version = project.mod_version

if (version.endsWith('-dev')) {
version += "." + new Date().format('yyyyMMdd.HHmmss')
}
}

loom {
// def commonVmArgs = ['-Dmixin.debug.export=true', '-Dmixin.debug.countInjections=true']
// // [FEATURE] MIXIN_AUDITOR
// runs {
// def auditVmArgs = [*commonVmArgs, '-DmixinAuditor.audit=true']
// clientMixinAudit {
// client()
// vmArgs auditVmArgs
// ideConfigGenerated false
// }
// serverMixinAudit {
// server()
// vmArgs auditVmArgs
// ideConfigGenerated false
// }
// }
}

processResources {
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ mod_name = Syncmatica
mod_file_name = syncmatica-fabric

# Mod Version
mod_version = 0.3.13-sakura.2
mod_version = 0.3.13-sakura.3

# Dependencies (malilib, litematica)
#malilib_fileid=4946328
#litematica_fileid=4946471
malilib_version = b41a9d0fa3
litematica_version = 2e77e3dd16
malilib_version = 1.21.4-0.23.2-sakura.2
litematica_version = 1.21.4-0.21.2-sakura.1

# Minecraft, Fabric Loader and API and mappings versions
minecraft_version_out = 1.21.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ protected static SyncmaticaPacket fromPacket(PacketByteBuf input)

protected void toPacket(PacketByteBuf output)
{
PacketByteBuf serverReplay = new PacketByteBuf(this.packet.copy());
output.writeIdentifier(this.channel);
output.writeBytes(this.packet.readBytes(this.packet.readableBytes()));
output.writeBytes(serverReplay.readBytes(serverReplay.readableBytes()));
}

public record Payload(SyncmaticaPacket data) implements CustomPayload
Expand Down
8 changes: 6 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@
"fabric-networking-api-v1": ">=4.3.6"
},
"suggests": {
"litematica": ">=0.21.0-sakura.8",
"malilib": ">=0.23.0-sakura.4"
"litematica": ">=0.21.2-sakura.1",
"malilib": ">=0.23.2-sakura.2"
},
"breaks": {
"litematica": "<0.19.0",
"malilib": "<0.20.0"
},

"icon": "assets/syncmatica/icon/logo.png",
Expand Down

0 comments on commit ff57888

Please sign in to comment.