attempt to index local 'placed' (a nil value) #2610

Closed
opened 2022-09-04 16:24:25 +00:00 by AliasAlreadyTaken · 3 comments
2022-09-04 16:23:05: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback item_OnPlace(): ...ive/bin/../mods/yl_commons/bugfixes/pitchfork_duping.lua:19: attempt to index local 'placed' (a nil value)
2022-09-04 16:23:05: ERROR[Main]: stack traceback:
2022-09-04 16:23:05: ERROR[Main]: 	...ive/bin/../mods/yl_commons/bugfixes/pitchfork_duping.lua:19: in function <...ive/bin/../mods/yl_commons/bugfixes/pitchfork_duping.lua:8>
``` 2022-09-04 16:23:05: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback item_OnPlace(): ...ive/bin/../mods/yl_commons/bugfixes/pitchfork_duping.lua:19: attempt to index local 'placed' (a nil value) 2022-09-04 16:23:05: ERROR[Main]: stack traceback: 2022-09-04 16:23:05: ERROR[Main]: ...ive/bin/../mods/yl_commons/bugfixes/pitchfork_duping.lua:19: in function <...ive/bin/../mods/yl_commons/bugfixes/pitchfork_duping.lua:8> ```
Author
Owner
    if not placed or not placed:is_empty() then
if not placed or not placed:is_empty() then
AliasAlreadyTaken added the
1. kind/bug
2. prio/critical
labels 2022-09-04 17:17:48 +00:00
Member

fixed in 23c9c9f479

i wasn't aware that value could be nil, but that's minetest

edit: apparently this is what happens when you place it on an ignore node? not entirely sure how you can do that w/out hacks...

fixed in https://gitea.your-land.de/your-land/yl_commons/commit/23c9c9f479b8494fbbd744b28f52d18b6daa5a4e i wasn't aware that value could be nil, but that's minetest edit: apparently this is what happens when you place it on an `ignore` node? not entirely sure how you can do that w/out hacks...
AliasAlreadyTaken added the
4. step/ready to QA test
label 2022-09-12 10:31:38 +00:00
AliasAlreadyTaken added this to the 1.1.116 milestone 2022-09-12 10:31:41 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2022-11-13 23:32:33 +00:00
Member

should be live

should be live
flux closed this issue 2022-11-13 23:32:42 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#2610
No description provided.