Sokomine / cottages

Minetest mod for building medieval houses
GNU General Public License v3.0
15 stars 19 forks source link

default.node_sound_*_defaults are functions, not tables. So add () #10

Closed wziard closed 5 years ago

wziard commented 5 years ago

When I click a mob from mobs_redo with any object from cottages, I get a crash.

This is because default.nodesound*_defaults are functions, not tables. But they are not called, but copied. Making sounds a function instead of a table.

Patch attached.

[snip] garbled patch deleted

wziard commented 5 years ago

Oh, that patch didn't survive my chain of copy-pasting to get it from my vps to github :-)

patch attached.

patch.txt

Sokomine commented 5 years ago

Thank you for noticing that bug! It ought to be fixed in the newest version. The sounds need some special care as some games (i.e. MC2) do not provide a suitable default mod.