entity.getenergy() no longer works

Place to get help with not working mods / modding interface.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

entity.getenergy() no longer works

Post by ficolas »

I'm using entity.getenergy() in my mod, but since 0.5, that key no longer exists,
is there a new key, that one doesnt work or it has been removed??

User avatar
rk84
Filter Inserter
Filter Inserter
Posts: 556
Joined: Wed Feb 13, 2013 9:15 am
Contact:

Re: entity.getenergy() no longer works

Post by rk84 »

seems to work for me.

Code: Select all

game.player.print(game.player.character.getselected().getenergy())
Test mode
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela

ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: entity.getenergy() no longer works

Post by ficolas »

rk84 wrote:seems to work for me.

Code: Select all

game.player.print(game.player.character.getselected().getenergy())
It also works for me, but I just noticed that it doesnt seem to work for me on assembling machines

Post Reply

Return to “Modding help”