update plugins

This commit is contained in:
okx-code
2024-08-18 15:34:32 +01:00
parent 3bf506f7be
commit 5a23670b5f
10 changed files with 8 additions and 8 deletions

Binary file not shown.

View File

@@ -2,7 +2,7 @@ import com.gradle.enterprise.gradleplugin.GradleEnterpriseExtension
plugins { plugins {
id("io.papermc.paperweight.userdev") version "1.7.2" apply false id("io.papermc.paperweight.userdev") version "1.7.2" apply false
id("com.gradleup.shadow") version "8.3.0" apply false id("com.github.johnrengelman.shadow") version "8.1.1" apply false
id("xyz.jpenilla.run-paper") version "2.2.2" apply false id("xyz.jpenilla.run-paper") version "2.2.2" apply false
} }

View File

@@ -1,6 +1,6 @@
plugins { plugins {
id("io.papermc.paperweight.userdev") id("io.papermc.paperweight.userdev")
id("com.gradleup.shadow") id("com.github.johnrengelman.shadow")
} }
version = "2.0.1" version = "2.0.1"

View File

@@ -44,7 +44,7 @@ subprojects {
create<MavenPublication>("maven") { create<MavenPublication>("maven") {
from(components["java"]) from(components["java"])
} }
pluginManager.withPlugin("com.gradleup.shadow") { pluginManager.withPlugin("com.github.johnrengelman.shadow") {
create<MavenPublication>("shadow") { create<MavenPublication>("shadow") {
from(components["java"]) from(components["java"])
} }
@@ -67,7 +67,7 @@ subprojects {
} }
} }
pluginManager.withPlugin("com.gradleup.shadow") { pluginManager.withPlugin("com.github.johnrengelman.shadow") {
tasks { tasks {
named("build") { named("build") {
dependsOn("shadowJar") dependsOn("shadowJar")

View File

@@ -1,6 +1,6 @@
plugins { plugins {
id("io.papermc.paperweight.userdev") id("io.papermc.paperweight.userdev")
id("com.gradleup.shadow") id("com.github.johnrengelman.shadow")
id("xyz.jpenilla.run-paper") id("xyz.jpenilla.run-paper")
} }

View File

@@ -1,6 +1,6 @@
plugins { plugins {
id("io.papermc.paperweight.userdev") id("io.papermc.paperweight.userdev")
id("com.gradleup.shadow") id("com.github.johnrengelman.shadow")
id("xyz.jpenilla.run-paper") id("xyz.jpenilla.run-paper")
} }

View File

@@ -146,7 +146,7 @@ public class NpcPlayerHelperImpl implements NpcPlayerHelper {
//Although we can use Mojang mappings when developing, We need to use the obfuscated field name //Although we can use Mojang mappings when developing, We need to use the obfuscated field name
//until we can run a full Mojmapped server. I personally used this site when updating to 1.20.6: //until we can run a full Mojmapped server. I personally used this site when updating to 1.20.6:
// https://mappings.cephx.dev/1.20.6/net/minecraft/world/food/FoodData.html // https://mappings.cephx.dev/1.20.6/net/minecraft/world/food/FoodData.html
foodTickTimerField = FoodData.class.getDeclaredField("d"); foodTickTimerField = FoodData.class.getDeclaredField("d"); // todo fix
foodTickTimerField.setAccessible(true); foodTickTimerField.setAccessible(true);
foodTickTimer = foodTickTimerField.getInt(entity.getFoodData()); foodTickTimer = foodTickTimerField.getInt(entity.getFoodData());
} catch (NoSuchFieldException | IllegalAccessException e) { } catch (NoSuchFieldException | IllegalAccessException e) {

View File

@@ -1,6 +1,6 @@
plugins { plugins {
id("io.papermc.paperweight.userdev") id("io.papermc.paperweight.userdev")
id("com.gradleup.shadow") id("com.github.johnrengelman.shadow")
} }
version = "2.0.3" version = "2.0.3"