ac-minetest / basic_robot

Write mods without server restart while playing. Create custom machines that can build, dig, produce... Create your own games like minesweeper, sokoban,ctf, hide and seek...
26 stars 21 forks source link

Crash on summoning non-existent buttons #37

Open mightyjoe781 opened 3 years ago

mightyjoe781 commented 3 years ago

ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: "basic_robot:button_256" is not a registered node!

mightyjoe781 commented 2 years ago

Hello This issue still existing on your latest commit. Put this in basic_robot and execute.

pos = self.pos()
pos.x = pos.x + 1
pos.y = pos.y + 1
pos.z = pos.z + 1
keyboard.set(pos,3000)
self.remove()

One possible way maybe is to check if the node keyboard is about to set even exists in registered node table.