mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Second attempt at a sign fix.
This commit is contained in:
parent
1341100f03
commit
56e055c671
1 changed files with 3 additions and 2 deletions
|
@ -2899,6 +2899,7 @@ public class Plot {
|
|||
*/
|
||||
public void mergePlot(Plot lesserPlot, boolean removeRoads) {
|
||||
Plot greaterPlot = this;
|
||||
lesserPlot.removeSign();
|
||||
if (lesserPlot.getId().x == greaterPlot.getId().x) {
|
||||
if (lesserPlot.getId().y > greaterPlot.getId().y) {
|
||||
Plot tmp = lesserPlot;
|
||||
|
@ -2912,7 +2913,7 @@ public class Plot {
|
|||
greaterPlot.setMerged(Direction.NORTH, true);
|
||||
lesserPlot.mergeData(greaterPlot);
|
||||
if (removeRoads) {
|
||||
lesserPlot.removeSign();
|
||||
//lesserPlot.removeSign();
|
||||
lesserPlot.removeRoadSouth();
|
||||
Plot diagonal = greaterPlot.getRelative(Direction.EAST);
|
||||
if (diagonal.getMerged(Direction.NORTHWEST)) {
|
||||
|
@ -2937,7 +2938,7 @@ public class Plot {
|
|||
greaterPlot.setMerged(Direction.WEST, true);
|
||||
lesserPlot.mergeData(greaterPlot);
|
||||
if (removeRoads) {
|
||||
lesserPlot.removeSign();
|
||||
//lesserPlot.removeSign();
|
||||
Plot diagonal = greaterPlot.getRelative(Direction.SOUTH);
|
||||
if (diagonal.getMerged(Direction.NORTHWEST)) {
|
||||
lesserPlot.removeRoadSouthEast();
|
||||
|
|
Loading…
Reference in a new issue