From 82b1c3b072a7cdecdf61a94be8cb5d41e761ccd9 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Sun, 16 Feb 2020 18:06:41 +0100 Subject: [PATCH] Updated Resetting plot biomes (markdown) --- Resetting-plot-biomes.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Resetting-plot-biomes.md b/Resetting-plot-biomes.md index fac5fa8..76a9619 100644 --- a/Resetting-plot-biomes.md +++ b/Resetting-plot-biomes.md @@ -1,15 +1,11 @@ -## This guide is for PlotSquared versions <= 1.12.2 -Download: https://www.dropbox.com/s/axvgoqd9swoe8m1/setbiomes.js?dl=0 - ```javascript /* This script will reset all biomes in claimed plots -/plot debugexec runasync setbiomes.js Forest */ -var plots = PS.sortPlots(PS.getPlots()); +var plots = PS.sortPlotsByTemp(PS.getPlots()); for (var i = 0; i < plots.size(); i++) { var plot = plots.get(i); - if (!plot.isMerged() || plot.getBottomPlot().equals(plot)) { + if (!plot.isMerged() || !plot.getMerged(0)) { plot.setBiome("%s0", null); PS.class.static.log('&cSetting biome for: ' + plot); }