redruin1 / factorio-draftsman

A complete, well-tested, and up-to-date module to manipulate Factorio blueprint strings. Compatible with mods.
MIT License
94 stars 17 forks source link

"'Blueprint' object has no attribute '_area'" error when following quickstart #14

Closed redruin1 closed 2 years ago

redruin1 commented 2 years ago

I forgot to move the initialization for the area attribute before loading the entities in the Blueprint. Dumb mistake; this will be fixed in version 0.9.5.

redruin1 commented 2 years ago

Also added a __contains__ method to Blueprint so that you can test for key membership; I thought this was handled with __getitem__ (and it kinda is) but now this feature works properly. This is also added to the test suite.