From 3dbbbc698ed9a068287e25ec97c576adae1b4cfc Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 27 Feb 2022 19:50:33 +0000 Subject: [PATCH] Fix "security" issue that was already present --- .../main/java/com/plotsquared/core/generator/HybridUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java b/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java index ce92136f6..41920f58b 100644 --- a/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java +++ b/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java @@ -673,7 +673,7 @@ public class HybridUtils { toCheck.set(true); } } - int size = plotWorld.SIZE; + short size = plotWorld.SIZE; for (int X = 0; X < 16; X++) { short absX = (short) ((finalX + X) % size); for (int Z = 0; Z < 16; Z++) {