Page 1 of 1

Access fluid-box via EntityPrototype

Posted: Fri Jul 21, 2017 1:21 pm
by Theanderblast
I'm trying to compute the storage capacity of fluid wagons. (I'd also like to do this for pumps and pipes.)

I saw some other posts on here with hackarounds via data.lua, I'm hoping for something more direct.

Re: Access fluid-box via EntityPrototype

Posted: Fri Jul 21, 2017 11:42 pm
by Rseding91
I've added LuaEntityPrototype::fluid_capacity read for the next version of 0.15.

Re: Access fluid-box via EntityPrototype

Posted: Sat Jul 22, 2017 12:47 am
by Theanderblast
Thanks!