mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 12:33:54 +00:00
Don't call ticking_list
on Spigot (#1655)
* ticking_list is paper only * Update adapters
This commit is contained in:
@ -481,7 +481,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 (existingSection == null) {
|
||||
@ -503,7 +505,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).
|
||||
DelegateSemaphore lock = PaperweightPlatformAdapter.applyLock(existingSection);
|
||||
PaperweightPlatformAdapter.clearCounts(existingSection);
|
||||
existingSection.tickingList.clear();
|
||||
if (PaperLib.isPaper()) {
|
||||
existingSection.tickingList.clear();
|
||||
}
|
||||
|
||||
synchronized (lock) {
|
||||
// lock.acquire();
|
||||
|
Reference in New Issue
Block a user