minetest-mods / inspector

A minetest node inspector tool that shows various properties of nodes.
GNU Lesser General Public License v2.1
9 stars 8 forks source link

Crash when inspecting pos outside of loaded area #12

Open Wuzzy2 opened 4 years ago

Wuzzy2 commented 4 years ago

If you inspect a pos with the /inspect command that is outside the loaded range, the mod will crash.

For example, you're at pos 0,0,0 and then do /inspect 1000 1000 1000, a pos that is not loaded yet.

FaceDeer commented 4 years ago

I believe I've fixed this in my pull request, inspector was trying to get descriptions of what param1 and param2 were for from the node's definition and not checking ahead of time whether there was a definition.