sbrl / Minetest-WorldEditAdditions

Extra tools and commands to extend WorldEdit for Minetest
https://worldeditadditions.mooncarrot.space/
Mozilla Public License 2.0
16 stars 3 forks source link

attempt to call field 'alias_command' (a nil value) #21

Closed rusty-snake closed 4 years ago

rusty-snake commented 4 years ago
ERROR[Main]: ModError: Failed to load and run script from /home/user/.minetest/mods/worldeditadditions/worldeditadditions_commands/init.lua:
ERROR[Main]: .../worldeditadditions/worldeditadditions_commands/init.lua:40: attempt to call field 'alias_command' (a nil value)
ERROR[Main]: stack traceback:
ERROR[Main]:    .../worldeditadditions/worldeditadditions_commands/init.lua:40: in main chunk
ERROR[Main]: Check debug.txt for details.

Minetest: 5.3.0 (flatpak) WE: latest from ContentDB WEA: latest from ContentDB

sbrl commented 4 years ago

Hey there, @rusty-snake! Sorry that you've encountered a crash. I'll need some more information though to debug the issue.

  1. Is the crash on startup?
  2. If not, could you detail some precise reproduction steps please?
rusty-snake commented 4 years ago

On startup.

sbrl commented 4 years ago

Oh my! I thought I'd fixed that one. Let me take a look.

rusty-snake commented 4 years ago

f3c6329 seems to work.

sbrl commented 4 years ago

Awesome! Glad it works :D

I'm just in the process of putting out a release - there are multiple places I need to post so might take a moment lol :P

Seems like the issue was due to a race condition as I didn't properly depend on worldedit_shortcommands, which provides that method.