sullerandras / UtilizationMonitor

UtilizationMonitor: Factorio mod to see if factories are fully utilized
MIT License
0 stars 6 forks source link

Crash when throwing granade to any object #8

Closed PaszaVonPomiot closed 6 years ago

PaszaVonPomiot commented 6 years ago

When I throw granade in sandbox mode to the ground it works fine but as soon as it hits tree or spawner an error occurs as shown in screenshot.

Factorio v0.16.16 UtilizationMonitor v0.3 Tested also without any other mods.

screenshot 41

ST-DDT commented 6 years ago

I can confirm the bug. Thanks for your report. The bug is caused if the remove_data method is called for any entity that does not have data (Such as trees, enemies, decoration and belts).

The attached PR #9 contains a fix for this bug. You can try it out yourself, but I guess the official release will be out soon as well.

sullerandras commented 6 years ago

Released the new version, please check. Thanks @ST-DDT for the quick pull request!