From 691675243400d1b5fb7e2c58e4e6926707d7e01d Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 12 Apr 2019 12:11:03 +1000 Subject: [PATCH] Fixes #2322 --- Core/src/main/resources/addsigns.js | 2 +- Core/src/main/resources/automerge.js | 2 +- Core/src/main/resources/setbiomes.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/src/main/resources/addsigns.js b/Core/src/main/resources/addsigns.js index 7f0996ca1..a1d2b8714 100644 --- a/Core/src/main/resources/addsigns.js +++ b/Core/src/main/resources/addsigns.js @@ -1,7 +1,7 @@ /* This script will fix all signs in the world. */ -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.getMerged(0)) { diff --git a/Core/src/main/resources/automerge.js b/Core/src/main/resources/automerge.js index b8326e842..6a6c2a20f 100644 --- a/Core/src/main/resources/automerge.js +++ b/Core/src/main/resources/automerge.js @@ -28,7 +28,7 @@ The following utility classes are usable: For more information see: https://github.com/IntellectualSites/PlotSquared/wiki/Scripting */ -var plots = PS.sortPlots(PS.getPlots()); +var plots = PS.sortPlotsByTemp(PS.getPlots()); PS.class.static.log("Attempting to auto merge " + plots.size() + " plots"); if ("%s0" === "true") { for (var i = 0; i < plots.size(); i++) { diff --git a/Core/src/main/resources/setbiomes.js b/Core/src/main/resources/setbiomes.js index b3d1dd4ff..48c841cb2 100644 --- a/Core/src/main/resources/setbiomes.js +++ b/Core/src/main/resources/setbiomes.js @@ -1,7 +1,7 @@ /* This script will reset all biomes in claimed plots */ -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.getMerged(0)) {