From e9b781d1273c6de119df87a9d33775df8e4086d5 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sat, 20 May 2023 15:22:02 +0100 Subject: [PATCH] fix: correctly in initialise unlimited limit (#2231) --- .../java/com/fastasyncworldedit/core/limit/FaweLimit.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/limit/FaweLimit.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/limit/FaweLimit.java index c899c668d..01d18db31 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/limit/FaweLimit.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/limit/FaweLimit.java @@ -2,6 +2,7 @@ package com.fastasyncworldedit.core.limit; import com.fastasyncworldedit.core.FaweCache; +import java.util.Collections; import java.util.Set; public class FaweLimit { @@ -114,10 +115,10 @@ public class FaweLimit { MAX.FAST_PLACEMENT = true; MAX.CONFIRM_LARGE = true; MAX.RESTRICT_HISTORY_TO_REGIONS = false; - MAX.STRIP_NBT = null; + MAX.STRIP_NBT = Collections.emptySet(); MAX.UNIVERSAL_DISALLOWED_BLOCKS = false; - MAX.DISALLOWED_BLOCKS = null; - MAX.REMAP_PROPERTIES = null; + MAX.DISALLOWED_BLOCKS = Collections.emptySet(); + MAX.REMAP_PROPERTIES = Collections.emptySet(); } public boolean MAX_CHANGES() {