import java.util.logging.*;
class RegionFileFixer {
public static RegionFile newRegionFile(File regionFileFile) {
try {
return new RegionFile(regionFileFile);
} catch (ArrayIndexOutOfBoundsException e) {
return fixNegativeOffset(regionFileFile);
} catch (Throwable t) {
FMLLog.log(Level.SEVERE, t, "Error opening region file: " + regionFileFile);
throw UnsafeUtil.throwIgnoreChecked(t);