Have PlotAreas create their own PlotManager

Leads to cleaner code, less need for instanceof and casting, as a PlotArea knows which kind of PlotManager it needs to make
This commit is contained in:
Alexander Krivács Schrøder
2019-05-31 15:32:24 +02:00
committed by Matt
parent c5bca66618
commit d106262454
12 changed files with 24 additions and 44 deletions

View File

@ -30,10 +30,6 @@ import java.util.Random;
@Override public void initialize(PlotArea area) {
}
@Override public PlotManager getNewPlotManager(PlotArea plotArea) {
return PlotSquared.get().IMP.getDefaultGenerator().getNewPlotManager(plotArea);
}
@Override public String getName() {
return this.chunkGenerator.getClass().getName();
}