mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-25 07:33:44 +02:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			feat/range
			...
			refactor/v
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | f54bb88394 | 
| @@ -176,7 +176,7 @@ public class DatabaseCommand extends SubCommand { | ||||
|                                                         ); | ||||
|                                                 worldFile.renameTo(newFile); | ||||
|                                             } | ||||
|                                             plot.setId(newId.copy()); | ||||
|                                             plot.setId(newId); | ||||
|                                             plot.setArea(pa); | ||||
|                                             plots.add(plot); | ||||
|                                             continue; | ||||
|   | ||||
| @@ -1836,8 +1836,8 @@ public class Plot { | ||||
|         } | ||||
|         // Swap cached | ||||
|         final PlotId temp = PlotId.of(this.getId().getX(), this.getId().getY()); | ||||
|         this.id = plot.getId().copy(); | ||||
|         plot.id = temp.copy(); | ||||
|         this.id = plot.getId(); | ||||
|         plot.id = temp; | ||||
|         this.area.removePlot(this.getId()); | ||||
|         plot.area.removePlot(plot.getId()); | ||||
|         this.area.addPlotAbs(this); | ||||
| @@ -1863,7 +1863,7 @@ public class Plot { | ||||
|             return false; | ||||
|         } | ||||
|         this.area.removePlot(this.id); | ||||
|         this.id = plot.getId().copy(); | ||||
|         this.id = plot.getId(); | ||||
|         this.area.addPlotAbs(this); | ||||
|         DBFunc.movePlot(this, plot); | ||||
|         TaskManager.runTaskLater(whenDone, TaskTime.ticks(1L)); | ||||
|   | ||||
| @@ -110,9 +110,11 @@ public final class PlotId { | ||||
|      * Get a copy of the plot ID | ||||
|      * | ||||
|      * @return Plot ID copy | ||||
|      * @deprecated PlotId is immutable, copy is not required. | ||||
|      */ | ||||
|     @Deprecated(forRemoval = true, since = "TODO") | ||||
|     public @NonNull PlotId copy() { | ||||
|         return of(this.getX(), this.getY()); | ||||
|         return this; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user