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

Runtime error from mod 'flowers_plus' in callback item_OnPlace(): Invalid position (expected table got nil). #10

Closed
Bastrabun opened this issue Dec 17, 2021 · 2 comments
Labels
invalid This doesn't seem right

Comments

@Bastrabun
Copy link

Since all the issues of VanessaE's repos were not migrated, I'll reopen:

2021-02-28 23:41:24: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'flowers_plus' in callback item_OnPlace(): Invalid position (expected table got nil).
2021-02-28 23:41:24: ERROR[Main]: stack traceback:
2021-02-28 23:41:24: ERROR[Main]: 	[C]: in function 'get_areas_for_pos'
2021-02-28 23:41:24: ERROR[Main]: 	/home/mtlive1/.minetest/mods/areas/api.lua:37: in function 'getAreasAtPos'
2021-02-28 23:41:24: ERROR[Main]: 	/home/mtlive1/.minetest/mods/xp_redo/areas.lua:8: in function 'f'
2021-02-28 23:41:24: ERROR[Main]: 	...tlive1/.minetest/mods/monitoring/metrictypes/counter.lua:42: in function 'is_protected'
2021-02-28 23:41:24: ERROR[Main]: 	...1/.minetest/mods/plantlife_modpack/flowers_plus/init.lua:194: in function <...1/.minetest/mods/plantlife_modpack/flowers_plus/init.lua:171>

This line 171 is now line is now (cb2373f) line 72 of pl/seaweed/init.lua:

if not minetest.is_protected(place_pos, placer:get_player_name()) then

For my reference #299

@S-S-X
Copy link
Member

S-S-X commented Dec 17, 2021

I think this issue was not moved because it was apparently already fixed.
Possibly invalid/already resolved but could try to verify situation.

@S-S-X S-S-X added the invalid This doesn't seem right label Dec 19, 2021
@S-S-X
Copy link
Member

S-S-X commented Dec 19, 2021

Checked code and this error cannot happen because there's nil check just above this line.
VanessaE (kind of) fixed it and @Bastrabun if you also posted GitLab issue you probably should have original notification/comment about it in mail.

@S-S-X S-S-X closed this as completed Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants