From af9418552a6f1cd3f960e9413452085affcab083 Mon Sep 17 00:00:00 2001 From: sauilitired Date: Tue, 18 Dec 2018 20:58:52 +0100 Subject: [PATCH] Whoops. --- .../intellectualsites/plotsquared/plot/object/PlotBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/PlotBlock.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/PlotBlock.java index c73a0ccbb..4599c0d14 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/PlotBlock.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/PlotBlock.java @@ -69,7 +69,7 @@ public abstract class PlotBlock { } conversionType = blockRegistry.getType(); } - if (!type.getClass().equals(blockRegistry.getClass())) { + if (!type.getClass().equals(conversionType)) { throw new UnsupportedOperationException("The PlotSquared implementation has not registered a block registry for this object type"); } return blockRegistry.getPlotBlock(type);