mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fixes #1619
This commit is contained in:
		@@ -328,11 +328,19 @@ public abstract class SchematicHandler {
 | 
				
			|||||||
                            if (!chunks.isEmpty()) {
 | 
					                            if (!chunks.isEmpty()) {
 | 
				
			||||||
                                this.run();
 | 
					                                this.run();
 | 
				
			||||||
                            } else {
 | 
					                            } else {
 | 
				
			||||||
 | 
					                                queue.flush();
 | 
				
			||||||
 | 
					                                HashMap<BlockLoc, CompoundTag> tiles = schematic.getTiles();
 | 
				
			||||||
 | 
					                                if (!tiles.isEmpty()) {
 | 
				
			||||||
 | 
					                                    TaskManager.IMP.sync(new RunnableVal<Object>() {
 | 
				
			||||||
 | 
					                                        @Override
 | 
				
			||||||
 | 
					                                        public void run(Object value) {
 | 
				
			||||||
                                            for (Map.Entry<BlockLoc, CompoundTag> entry : schematic.getTiles().entrySet()) {
 | 
					                                            for (Map.Entry<BlockLoc, CompoundTag> entry : schematic.getTiles().entrySet()) {
 | 
				
			||||||
                                                BlockLoc loc = entry.getKey();
 | 
					                                                BlockLoc loc = entry.getKey();
 | 
				
			||||||
                                                restoreTile(queue, entry.getValue(), p1x + xOffset + loc.x, loc.y + y_offset_actual, p1z + zOffset + loc.z);
 | 
					                                                restoreTile(queue, entry.getValue(), p1x + xOffset + loc.x, loc.y + y_offset_actual, p1z + zOffset + loc.z);
 | 
				
			||||||
                                            }
 | 
					                                            }
 | 
				
			||||||
                                queue.flush();
 | 
					                                        }
 | 
				
			||||||
 | 
					                                    });
 | 
				
			||||||
 | 
					                                }
 | 
				
			||||||
                                if (whenDone != null) {
 | 
					                                if (whenDone != null) {
 | 
				
			||||||
                                    whenDone.value = true;
 | 
					                                    whenDone.value = true;
 | 
				
			||||||
                                    whenDone.run();
 | 
					                                    whenDone.run();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user