[water_life] water_life/tools/buoy.lua:124: attempt to index local 'puncher' (a nil value) #8494

Open
opened 2025-05-03 01:36:15 +02:00 by whosit · 2 comments
Member
AsyncErr: Lua: Runtime error from mod 'water_life' in callback luaentity_Step(): "Runtime error from mod 'water_life' in callback luaentity_Punch(): ...water_life/tools/buoy.lua:124: attempt to index local 'puncher' (a nil value)
stack traceback:
	...water_life/tools/buoy.lua:124: in function <...worldmods/water_life/tools/buoy.lua:122>
	[C]: in function 'punch'
	...cannons/cannonballs.lua:25: in function 'on_mob_hit'
	...cannons/functions.lua:328: in function <...cannons/functions.lua:314>"
stack traceback:
	[C]: in function 'punch'
	...cannons/cannonballs.lua:25: in function 'on_mob_hit'
	...cannons/functions.lua:328: in function <...cannons/functions.lua:314>

Same cause as #8070

```cpp AsyncErr: Lua: Runtime error from mod 'water_life' in callback luaentity_Step(): "Runtime error from mod 'water_life' in callback luaentity_Punch(): ...water_life/tools/buoy.lua:124: attempt to index local 'puncher' (a nil value) stack traceback: ...water_life/tools/buoy.lua:124: in function <...worldmods/water_life/tools/buoy.lua:122> [C]: in function 'punch' ...cannons/cannonballs.lua:25: in function 'on_mob_hit' ...cannons/functions.lua:328: in function <...cannons/functions.lua:314>" stack traceback: [C]: in function 'punch' ...cannons/cannonballs.lua:25: in function 'on_mob_hit' ...cannons/functions.lua:328: in function <...cannons/functions.lua:314> ``` Same cause as https://gitea.your-land.de/your-land/bugtracker/issues/8070
whosit added the
1. kind/bug
3. source/mod upstream
2. prio/critical
labels 2025-05-03 01:36:30 +02:00

Means, water_life needs to fix that?

Means, water_life needs to fix that?
Author
Member

I think API says that puncher/hitter can be nil, so yes.
We had some fixes related to this in other mods: #8070
also in petz...

I think API says that puncher/hitter can be nil, so yes. We had some fixes related to this in other mods: https://gitea.your-land.de/your-land/bugtracker/issues/8070 also in petz...
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#8494
No description provided.