[0.0-29] fix crash on OpenGL when creating new map; fix luacrash when placing blocks in mapedit