Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Persist locking of an animal's age to disk
Dieser Commit ist enthalten in:
Ursprung
94231f1ecf
Commit
3b46222c54
@ -149,12 +149,14 @@ public abstract class EntityAnimal extends EntityCreature implements IAnimal {
|
||||
super.b(nbttagcompound);
|
||||
nbttagcompound.setInt("Age", this.getAge());
|
||||
nbttagcompound.setInt("InLove", this.love);
|
||||
nbttagcompound.setBoolean("AgeLocked", this.ageLocked); // CraftBukkit
|
||||
}
|
||||
|
||||
public void a(NBTTagCompound nbttagcompound) {
|
||||
super.a(nbttagcompound);
|
||||
this.setAge(nbttagcompound.getInt("Age"));
|
||||
this.love = nbttagcompound.getInt("InLove");
|
||||
this.ageLocked = nbttagcompound.getBoolean("AgeLocked"); // CraftBukkit
|
||||
}
|
||||
|
||||
protected Entity findTarget() {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren