Implement restoring tags directly using a supplied block (#3616)

- Reduces overhead when setting blocks via fallback
 - Also means blocks will not be accessed via world when they should be access via chunk (https://github.com/IntellectualSites/PlotSquared/pull/3612)
This commit is contained in:
Jordan
2022-05-11 13:12:19 +01:00
committed by GitHub
parent 85911646f3
commit f7d55ce105
2 changed files with 25 additions and 6 deletions

View File

@ -289,7 +289,7 @@ public class BukkitQueueCoordinator extends BasicQueueCoordinator {
CompoundTag tag = block.getNbtData();
StateWrapper sw = new StateWrapper(tag);
sw.restoreTag(getWorld().getName(), existing.getX(), existing.getY(), existing.getZ());
sw.restoreTag(existing);
}
}
}