public static void loadChunk(Chunk chunk,World world,int x,int z){
         int[] regPosition = PositionUtil.getChunkRegion(x, z);
            Region reg = world.getDimension().get(regPosition[0], regPosition[1]);
            if(chunk == null){
                if(reg == null)return;
                reg.unloadChunks(x, z);
                return;
            }
           
            if(reg == null){
                reg = new Region(regPosition[0], regPosition[1],world.getDimension());
               world.getDimension().loadRegion(reg);
           }
          
           reg.loadChunks(chunk); 
    }