mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Only Ores NBT
This commit is contained in:
parent
508b488405
commit
0280dc53a8
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,7 @@ public class TileEntityMiner extends TileEntityBase implements IEnergyReceiver{
|
||||||
super.writeSyncableNBT(compound, sync);
|
super.writeSyncableNBT(compound, sync);
|
||||||
this.storage.writeToNBT(compound);
|
this.storage.writeToNBT(compound);
|
||||||
compound.setInteger("Layer", this.layerAt);
|
compound.setInteger("Layer", this.layerAt);
|
||||||
|
compound.setBoolean("OnlyOres", this.onlyMineOres);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -126,6 +127,7 @@ public class TileEntityMiner extends TileEntityBase implements IEnergyReceiver{
|
||||||
super.readSyncableNBT(compound, sync);
|
super.readSyncableNBT(compound, sync);
|
||||||
this.storage.readFromNBT(compound);
|
this.storage.readFromNBT(compound);
|
||||||
this.layerAt = compound.getInteger("Layer");
|
this.layerAt = compound.getInteger("Layer");
|
||||||
|
this.onlyMineOres = compound.getBoolean("OnlyOres");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue