@@ -42,7 +42,6 @@ public class RegionFileRelocator {
42
42
@ Nullable
43
43
private final UUID playerId ;
44
44
private boolean started = false ;
45
- private boolean chunkNBTscan = true ;
46
45
47
46
public static RegionFileRelocator create (CommandSourceStack source , String templateId , ResourceKey <Level > dimensionKey , RelocatorTracker .Ticker ticker , XZ regionOffset , boolean force ) throws IOException {
48
47
return RelocatorTracker .INSTANCE .add (new RegionFileRelocator (source , templateId , dimensionKey , regionOffset , force ), ticker );
@@ -94,17 +93,6 @@ public Map<Path, RelocationData> getRelocationData() {
94
93
return relocationData ;
95
94
}
96
95
97
- /**
98
- * Disable chunk NBT scanning for much faster relocation; <strong>only do this if you know for certain that there
99
- * are no block entities which store absolute block positions!</strong>
100
- *
101
- * @return the relocator itself
102
- */
103
- public RegionFileRelocator noChunkNBTscan () {
104
- chunkNBTscan = false ;
105
- return this ;
106
- }
107
-
108
96
public void start (BooleanConsumer onCompleted ) {
109
97
if (started ) {
110
98
throw new IllegalStateException ("relocator already started!" );
@@ -194,7 +182,7 @@ private boolean relocateOneRegion(Path fromFile, Path workDir, RelocationData da
194
182
}
195
183
196
184
private boolean updateRegionChunkData (RegionFileStorage storage , RegionCoords r , int xOff , int zOff ) {
197
- if (! chunkNBTscan || xOff == 0 && zOff == 0 ) {
185
+ if (xOff == 0 && zOff == 0 ) {
198
186
return true ; // trivial case
199
187
}
200
188
0 commit comments