mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fix plot clearing in normal plot worlds
This commit is contained in:
parent
283ff945f3
commit
5d332e7d58
2 changed files with 3 additions and 3 deletions
|
@ -179,8 +179,8 @@ public class HybridPlotManager extends ClassicPlotManager {
|
||||||
Location pos2 = plot.getExtendedTopAbs();
|
Location pos2 = plot.getExtendedTopAbs();
|
||||||
// If augmented
|
// If augmented
|
||||||
final boolean canRegen =
|
final boolean canRegen =
|
||||||
(hybridPlotWorld.getType() == PlotAreaType.NORMAL)
|
(hybridPlotWorld.getType() == PlotAreaType.AUGMENTED)
|
||||||
&& (hybridPlotWorld.getTerrain() == PlotAreaTerrainType.NONE) && REGENERATIVE_CLEAR;
|
&& (hybridPlotWorld.getTerrain() != PlotAreaTerrainType.NONE) && REGENERATIVE_CLEAR;
|
||||||
// The component blocks
|
// The component blocks
|
||||||
final Pattern plotfloor = hybridPlotWorld.TOP_BLOCK.toPattern();
|
final Pattern plotfloor = hybridPlotWorld.TOP_BLOCK.toPattern();
|
||||||
final Pattern filling = hybridPlotWorld.MAIN_BLOCK.toPattern();
|
final Pattern filling = hybridPlotWorld.MAIN_BLOCK.toPattern();
|
||||||
|
|
|
@ -32,7 +32,7 @@ public enum PlotAreaTerrainType {
|
||||||
.collect(Collectors.toMap(e -> e.toString().toLowerCase(), Function.identity()));
|
.collect(Collectors.toMap(e -> e.toString().toLowerCase(), Function.identity()));
|
||||||
|
|
||||||
public static Optional<PlotAreaTerrainType> fromString(String typeString) {
|
public static Optional<PlotAreaTerrainType> fromString(String typeString) {
|
||||||
return Optional.ofNullable(types.get(typeString));
|
return Optional.ofNullable(types.get(typeString.toLowerCase()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
|
Loading…
Reference in a new issue