This commit is contained in:
sauilitired 2018-12-18 20:58:52 +01:00
parent 10b87f5728
commit af9418552a

View File

@ -69,7 +69,7 @@ public abstract class PlotBlock {
} }
conversionType = blockRegistry.getType(); 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"); throw new UnsupportedOperationException("The PlotSquared implementation has not registered a block registry for this object type");
} }
return blockRegistry.getPlotBlock(type); return blockRegistry.getPlotBlock(type);