requesting invalid inventory for an entity is a crash

This subforum contains all the issues which we already resolved.
sparr
Smart Inserter
Smart Inserter
Posts: 1521
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

requesting invalid inventory for an entity is a crash

Post by sparr »

entity.get_inventory(1) should just return nil if the entity doesn't have inventory #1, rather than crashing.

this bug report parallels my feature request for some way to find out which inventories an entity has.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15936
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: requesting invalid inventory for an entity is a crash

Post by Rseding91 »

Agreed. Implemented for 0.13.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”