正确序列化EnergyStorage
This commit is contained in:
parent
26c6b171be
commit
022cddaa40
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ public class DPSGeneratorEntity extends LivingEntity implements GeoEntity {
|
|||
if (entityCap == null) return;
|
||||
|
||||
((SyncedEntityEnergyStorage) entityCap).setEnergy(compound.getInt("Energy"));
|
||||
((SyncedEntityEnergyStorage) entityCap).setCapacity(this.getMaxEnergy());
|
||||
((SyncedEntityEnergyStorage) entityCap).setMaxExtract(this.getMaxTransfer());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue