Page 1 of 1

[Genhis][2.0.52] LuaEntityPrototype.get_inventory_size not working as expected

Posted: Sat May 24, 2025 9:02 pm
by SWeini
I'm trying to get the number of stacks I'm able to put into a (modded) rocket silo

however,

Code: Select all

LuaEntityPrototype.get_inventory_size(defines.inventory.rocket_silo_rocket)
returns nil and

Code: Select all

get_inventory_size
on the

Code: Select all

rocket_entity_prototype
returns nil for every argument I have tried, so I'm out of options here

I expect

Code: Select all

LuaEntityPrototype.get_inventory_size(defines.inventory.rocket_silo_rocket)
to return the value given in

Code: Select all

RocketSiloPrototype.to_be_inserted_to_rocket_inventory_size

Re: [Genhis][2.0.52] LuaEntityPrototype.get_inventory_size not working as expected

Posted: Sun May 25, 2025 9:02 am
by Genhis
Thanks for the report, I added rocket_silo_rocket and rocket_silo_trash to get_inventory_size() for 2.0.53.