ThePython10110 / ExchangeClone

Equivalent Exchange/ProjectE for Minetest Game and MineClone2/Mineclonia
https://github.com/ThePython10110/ExchangeClone/wiki
GNU General Public License v3.0
3 stars 3 forks source link

[Bug] red matter hammer right-click dig crashes when digging full-grown amethyst cluster #16

Closed programmerjake closed 10 months ago

programmerjake commented 10 months ago

Describe the bug right-click digging full-grown amethyst cluster with a red matter hammer crashes.

Expected behavior digs as normal.

Game Mineclone 2

Reproduction Steps start new creative-mode world with Mineclone 2 and ExchangeClone. give yourself a red matter hammer and a full-grown amethyst cluster (mcl_amethyst:amethyst_cluster) place amethyst cluster right-click with red matter hammer observe crash

Additional context

2024-01-25 00:16:43: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'exchangeclone' in callback item_OnPlace(): /app/share/minetest/builtin/game/item.lua:88: attempt to call method 'find' (a nil value)
2024-01-25 00:16:43: ERROR[Main]: stack traceback:
2024-01-25 00:16:43: ERROR[Main]:   /app/share/minetest/builtin/game/item.lua:88: in function 'get_node_drops'
2024-01-25 00:16:43: ERROR[Main]:   ...t/.minetest/mods/exchangeclone/exchangeclone/hammers.lua:23: in function 'action'
2024-01-25 00:16:43: ERROR[Main]:   ...etest/mods/exchangeclone/zzzz_exchangeclone_init/lib.lua:595: in function 'node_radius_action'
2024-01-25 00:16:43: ERROR[Main]:   ...t/.minetest/mods/exchangeclone/exchangeclone/hammers.lua:68: in function <...t/.minetest/mods/exchangeclone/exchangeclone/hammers.lua:37>
ThePython10110 commented 10 months ago

Fixed.