From 10b87f572832cf3e379ce2ed037df05129658729 Mon Sep 17 00:00:00 2001 From: sauilitired Date: Tue, 18 Dec 2018 20:56:55 +0100 Subject: [PATCH] Add mappings for pre initialized items --- .../plotsquared/plot/object/BlockRegistry.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/BlockRegistry.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/BlockRegistry.java index f8be06c45..49c6ab0b4 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/BlockRegistry.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/BlockRegistry.java @@ -13,6 +13,9 @@ public abstract class BlockRegistry { public BlockRegistry(@NonNull final Class type, final T... preInitializedItems) { this.type = type; + for (final T preInitializedItem : preInitializedItems) { + this.addMapping(getPlotBlock(preInitializedItem), preInitializedItem); + } } public final void addMapping(@NonNull final PlotBlock plotBlock, @NonNull final T t) {