/** * Resets the biome if it was modified * * @param area * @param pos1 * @param pos2 * @return true if any changes were made */ public static boolean resetBiome(PlotArea area, Location pos1, Location pos2) { String biome = area.PLOT_BIOME; if (!StringMan.isEqual( WorldUtil.IMP.getBiome( area.worldname, (pos1.getX() + pos2.getX()) / 2, (pos1.getZ() + pos2.getZ()) / 2), biome)) { setBiome(area.worldname, pos1.getX(), pos1.getZ(), pos2.getX(), pos2.getZ(), biome); return true; } return false; }