Only Ores NBT

This commit is contained in:
Ellpeck 2015-12-09 18:48:46 +01:00
parent 508b488405
commit 0280dc53a8

View file

@ -119,6 +119,7 @@ public class TileEntityMiner extends TileEntityBase implements IEnergyReceiver{
super.writeSyncableNBT(compound, sync);
this.storage.writeToNBT(compound);
compound.setInteger("Layer", this.layerAt);
compound.setBoolean("OnlyOres", this.onlyMineOres);
}
@Override
@ -126,6 +127,7 @@ public class TileEntityMiner extends TileEntityBase implements IEnergyReceiver{
super.readSyncableNBT(compound, sync);
this.storage.readFromNBT(compound);
this.layerAt = compound.getInteger("Layer");
this.onlyMineOres = compound.getBoolean("OnlyOres");
}
@Override