Add missing return statement
Fix lua stack overflows when processing large worlds