mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
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:

committed by
Matt

parent
c5bca66618
commit
d106262454
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user