Persist paper lootable on entities (#8762)

This commit is contained in:
Bjarne Koll 2023-01-05 11:59:10 +01:00
parent 5f27ebfa6f
commit 43f4155da3

View File

@ -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);
} }