mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
Persist paper lootable on entities (#8762)
This commit is contained in:
parent
5f27ebfa6f
commit
43f4155da3
1 changed files with 2 additions and 2 deletions
|
@ -530,7 +530,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
@Override
|
@Override
|
||||||
protected void addAdditionalSaveData(CompoundTag nbt) {
|
protected void addAdditionalSaveData(CompoundTag nbt) {
|
||||||
super.addAdditionalSaveData(nbt);
|
super.addAdditionalSaveData(nbt);
|
||||||
+ this.lootableData.loadNbt(nbt); // Paper
|
+ this.lootableData.saveNbt(nbt); // Paper
|
||||||
this.addChestVehicleSaveData(nbt);
|
this.addChestVehicleSaveData(nbt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -549,7 +549,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
@Override
|
@Override
|
||||||
protected void addAdditionalSaveData(CompoundTag nbt) {
|
protected void addAdditionalSaveData(CompoundTag nbt) {
|
||||||
super.addAdditionalSaveData(nbt);
|
super.addAdditionalSaveData(nbt);
|
||||||
+ this.lootableData.loadNbt(nbt); // Paper
|
+ this.lootableData.saveNbt(nbt); // Paper
|
||||||
this.addChestVehicleSaveData(nbt);
|
this.addChestVehicleSaveData(nbt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue