Error while running event Ultracube::on_tick (ID 0)
__Ultracube__/scripts/cube_fx.lua:124: attempt to compare number with nil
stack traceback:
__Ultracube__/scripts/cube_fx.lua:124: in function 'cube_spark'
__Ultracube__/scripts/cube_fx.lua:312: in function 'tick'
__Ultracube__/control.lua:265: in function <__Ultracube__/control.lua:264>
Proposed fix on line 124:
if (result.height or 0) >= 0 and result.entity then