fix chunk loading and in-game gamemode switch

FIXED CHUNK LOADING IN A HACKY WAY!