Added casting check to read method in EnergyStorageHandler, should fix any loading issues of old game data