mt-mods / mt-mods/pipeworks

Crash in MineClonia because luaentites

Open
#140 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug question
Dominant language
Lua
Stars
20
Forks
31
Avg merge
1m
Merged PRs (30d)
9

Description

Minetest version: 5.8.1

MineClonia version: (latest) git main branch commit 9f77361a499afc58f2acbeb5b9b2258c4f4335f8

Pipeworks version: git master branch commit 7079fff85f571e0d22e4a6c7164054926e5a8a96

Crash when a luaentity spawns (ie witches splash potions)

...minetest/bin/../mods/pipeworks/luaentity.lua:386: attempt to call method '_add_loaded' (a nil value)
stack traceback:
	[C]: in function '_add_loaded'
	...minetest/bin/../mods/pipeworks/luaentity.lua:386: in function 'move_entities_globalstep_part2'
	...minetest/bin/../mods/pipeworks/luaentity.lua:418: in function <...minetest/bin/../mods/pipeworks/luaentity.lua:402>
	...minetest/bin/../builtin/common/register.lua:26: in function <...minetest/bin/../builtin/common/register.lua:12>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in mods/pipeworks/luaentity.lua at line 386, where move_entities_globalstep_part2 calls _add_loaded, and review the surrounding call path shown in the traceback. Reproduce the crash when a luaentity spawns, then verify that the affected spawn path no longer raises the nil-method error.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.