Make absolutely sure floppy data is saved to item on disk drive save.
This commit is contained in:
@@ -184,6 +184,12 @@ public final class DiskDriveBlockEntity extends ModBlockEntity {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompoundTag serializeNBT() {
|
||||
exportDeviceDataToItemStack(getStackInSlotRaw(0));
|
||||
return super.serializeNBT();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onContentsChanged(final int slot) {
|
||||
super.onContentsChanged(slot);
|
||||
|
||||
Reference in New Issue
Block a user