diff --git a/Core/src/main/java/com/plotsquared/core/plot/flag/types/BlockTypeWrapper.java b/Core/src/main/java/com/plotsquared/core/plot/flag/types/BlockTypeWrapper.java index 537515f0a..defeb4470 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/flag/types/BlockTypeWrapper.java +++ b/Core/src/main/java/com/plotsquared/core/plot/flag/types/BlockTypeWrapper.java @@ -61,9 +61,9 @@ public class BlockTypeWrapper { this.blockCategoryId = null; } - public BlockTypeWrapper(@Nullable String blockCategoryId) { + private BlockTypeWrapper(@NotNull final String blockCategoryId) { this.blockType = null; - this.blockCategoryId = blockCategoryId; + this.blockCategoryId = Preconditions.checkNotNull(blockCategoryId); this.blockCategory = null; }