From a44eaf8c4b80312696aa303ac54df740dcc0a452 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sat, 29 Jun 2024 14:28:14 +0100 Subject: [PATCH] fix: clone polyhedral region last triangle too if present --- .../com/fastasyncworldedit/core/regions/PolyhedralRegion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/regions/PolyhedralRegion.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/regions/PolyhedralRegion.java index a1471c9d8..675e8efb6 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/regions/PolyhedralRegion.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/regions/PolyhedralRegion.java @@ -77,7 +77,7 @@ public class PolyhedralRegion extends AbstractRegion { minimumPoint = region.minimumPoint; maximumPoint = region.maximumPoint; centerAccum = region.centerAccum; - lastTriangle = region.lastTriangle; + lastTriangle = lastTriangle == null ? null : region.lastTriangle.clone(); } /**