Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DyWorld-Dynamic's burner radar causes crash when distributing items to it #39

Open
Atria1234 opened this issue Dec 31, 2021 · 0 comments

Comments

@Atria1234
Copy link

DyWorld-Dynamic mod introduces new radar which burns carbon fuel for it to run.

So entity:inventory("fuel") at https://github.com/321freddy/even-distribution/blob/master/scripts/cleanup.lua#L267 returns nil and then is accessed right away, causing Lua's equivalent of Null pointer exception.

After some debugging I found that entity.get_inventory("fuel") returns actual inventory while entity.get_fuel_inventory() returns nil. It appears to be bug in Factorio, but fast fix for this mod would be to use entity.get_inventory(defines.inventory.fuel) on line https://github.com/321freddy/even-distribution/blob/master/scripts/helpers/LuaControl.lua#L67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant