Don't call ticking_list on Spigot (#1655)

* ticking_list is paper only

* Update adapters
This commit is contained in:
Jordan
2022-03-14 10:08:10 +00:00
committed by GitHub
parent d400a470a1
commit 1708584e8d
4 changed files with 22 additions and 5 deletions

View File

@ -510,7 +510,9 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
// Don't attempt to tick section whilst we're editing
if (existingSection != null) {
PaperweightPlatformAdapter.clearCounts(existingSection);
existingSection.tickingList.clear();
if (PaperLib.isPaper()) {
existingSection.tickingList.clear();
}
}
if (createCopy) {
@ -553,7 +555,9 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
//ensure that the server doesn't try to tick the chunksection while we're editing it. (Again)
PaperweightPlatformAdapter.clearCounts(existingSection);
existingSection.tickingList.clear();
if (PaperLib.isPaper()) {
existingSection.tickingList.clear();
}
DelegateSemaphore lock = PaperweightPlatformAdapter.applyLock(existingSection);
synchronized (lock) {