Energy Generator initilized

some parts of core was rewrite