mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-22 00:57:55 +01:00
Update to 1.20.5 Fabric by DrexHD (#3424)
* Update to 24w03b * Update to 1.20.5-rc2 * Bump minecraft dependency
This commit is contained in:
parent
6776c79a14
commit
faa911e232
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'adopt'
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
- name: 💼 Load Gradle Cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
@ -17,7 +17,7 @@ plugins {
|
||||
id "jacoco"
|
||||
id "checkstyle"
|
||||
id "org.sonarqube" version "5.0.0.4638"
|
||||
id 'fabric-loom' version '1.3-SNAPSHOT' apply false
|
||||
id 'fabric-loom' version '1.6-SNAPSHOT' apply false
|
||||
}
|
||||
|
||||
apply plugin: 'nebula-aggregate-javadocs'
|
||||
|
@ -8,10 +8,10 @@ dependencies {
|
||||
|
||||
shadow "net.playeranalytics:platform-abstraction-layer-api:$palVersion"
|
||||
|
||||
minecraft "com.mojang:minecraft:1.20.4"
|
||||
mappings "net.fabricmc:yarn:1.20.4+build.3:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:0.15.2"
|
||||
modImplementation('me.lucko:fabric-permissions-api:0.3-SNAPSHOT')
|
||||
minecraft "com.mojang:minecraft:1.20.5-rc2"
|
||||
mappings "net.fabricmc:yarn:1.20.5-rc2+build.1:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:0.15.10"
|
||||
modImplementation('me.lucko:fabric-permissions-api:0.3.1')
|
||||
|
||||
// Fabric API
|
||||
Set<String> apiModules = [
|
||||
@ -24,7 +24,7 @@ dependencies {
|
||||
]
|
||||
|
||||
apiModules.forEach {
|
||||
modImplementation(fabricApi.module(it, "0.91.2+1.20.4"))
|
||||
modImplementation(fabricApi.module(it, "0.97.3+1.20.5"))
|
||||
}
|
||||
|
||||
testImplementation project(path: ":common", configuration: 'testArtifacts')
|
||||
@ -36,7 +36,7 @@ loom {
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
options.release.set(17)
|
||||
options.release.set(21)
|
||||
}
|
||||
|
||||
processResources {
|
||||
|
@ -27,7 +27,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
@Mixin(ServerHandshakeNetworkHandler.class)
|
||||
public class ClientToServerHandshakePacketMixin {
|
||||
|
||||
@Inject(method = "onHandshake", at = @At(value = "INVOKE", ordinal = 0, target = "Lnet/minecraft/network/ClientConnection;setPacketListener(Lnet/minecraft/network/listener/PacketListener;)V"))
|
||||
@Inject(method = "onHandshake", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/network/ServerHandshakeNetworkHandler;login(Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;Z)V"))
|
||||
public void onClientHandshakeFromNetwork(HandshakeC2SPacket packet, CallbackInfo ci) {
|
||||
PlanFabricEvents.ON_HANDSHAKE.invoker().onHandshake(packet);
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
"plan.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"minecraft": ">=1.19",
|
||||
"minecraft": ">=1.20.5",
|
||||
"java": ">=17",
|
||||
"fabric-api-base": "*",
|
||||
"fabric-command-api-v2": "*",
|
||||
|
@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
Loading…
Reference in New Issue
Block a user