update mache, rebuild patches for concurrency fix

This commit is contained in:
MiniDigger | Martin 2024-12-14 16:08:25 +01:00
parent 649f20ca93
commit f803e7cc28
3 changed files with 12 additions and 12 deletions

View file

@ -12,7 +12,7 @@ plugins {
val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/"
dependencies {
mache("io.papermc:mache:1.21.4+build.5")
mache("io.papermc:mache:1.21.4+build.6")
paperclip("io.papermc:paperclip:3.0.3")
remapper("net.fabricmc:tiny-remapper:0.10.3:fat")
}

View file

@ -47,18 +47,18 @@
age += amount * 20;
if (age > 0) {
@@ -104,6 +_,7 @@
super.addAdditionalSaveData(tag);
tag.putInt("Age", this.getAge());
tag.putInt("ForcedAge", this.forcedAge);
+ tag.putBoolean("AgeLocked", this.ageLocked); // CraftBukkit
super.addAdditionalSaveData(compound);
compound.putInt("Age", this.getAge());
compound.putInt("ForcedAge", this.forcedAge);
+ compound.putBoolean("AgeLocked", this.ageLocked); // CraftBukkit
}
@Override
@@ -111,6 +_,7 @@
super.readAdditionalSaveData(tag);
this.setAge(tag.getInt("Age"));
this.forcedAge = tag.getInt("ForcedAge");
+ this.ageLocked = tag.getBoolean("AgeLocked"); // CraftBukkit
super.readAdditionalSaveData(compound);
this.setAge(compound.getInt("Age"));
this.forcedAge = compound.getInt("ForcedAge");
+ this.ageLocked = compound.getBoolean("AgeLocked"); // CraftBukkit
}
@Override

View file

@ -56,9 +56,9 @@
.ifPresent(data -> this.vibrationData = data);
}
- this.duplicationCooldown = tag.getInt("DuplicationCooldown");
+ this.duplicationCooldown = tag.getLong("DuplicationCooldown"); // Paper - Load as long
this.entityData.set(DATA_CAN_DUPLICATE, tag.getBoolean("CanDuplicate"));
- this.duplicationCooldown = compound.getInt("DuplicationCooldown");
+ this.duplicationCooldown = compound.getLong("DuplicationCooldown"); // Paper - Load as long
this.entityData.set(DATA_CAN_DUPLICATE, compound.getBoolean("CanDuplicate"));
}
@@ -508,15 +_,17 @@