mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Fix some bugs and improve performance
Former-commit-id: 19d337de2cca0fee528d68c1529cc45530fd573f
This commit is contained in:
1 parent
68c079d980
commit
7b880308d7
4 files changed
+8
-8
No files matched your search
@@ -33,10 +33,10 @@ import java.util.ArrayList;
|
||||
*/
|
||||
public class Compatibility {
|
||||
private final ArrayList<RegisteredListener> disabledListeners = new ArrayList<>();
|
||||
private QuickShop plugin;
|
||||
//private QuickShop plugin;
|
||||
|
||||
public Compatibility(@NotNull QuickShop plugin) {
|
||||
this.plugin = plugin;
|
||||
//this.plugin = plugin;
|
||||
}
|
||||
|
||||
private void disableListeners(@NotNull Player player) {
|
||||
|
||||
@@ -32,11 +32,11 @@ import java.util.Queue;
|
||||
* Check the shops after server booted up, make sure shop can correct self-deleted when container lost.
|
||||
*/
|
||||
public class ShopContainerWatcher extends BukkitRunnable {
|
||||
private QuickShop plugin;
|
||||
//private QuickShop plugin;
|
||||
private Queue<Shop> checkQueue = new LinkedList<>();
|
||||
|
||||
public ShopContainerWatcher(@NotNull QuickShop plugin) {
|
||||
this.plugin = plugin;
|
||||
//this.plugin = plugin;
|
||||
}
|
||||
|
||||
public void scheduleCheck(@NotNull Shop shop) {
|
||||
|
||||
@@ -28,11 +28,11 @@ import java.util.LinkedList;
|
||||
import java.util.Queue;
|
||||
|
||||
public class SignUpdateWatcher extends BukkitRunnable {
|
||||
private QuickShop plugin;
|
||||
//private QuickShop plugin;
|
||||
private Queue<Shop> signUpdateQueue = new LinkedList<>();
|
||||
|
||||
public SignUpdateWatcher(QuickShop plugin) {
|
||||
this.plugin = plugin;
|
||||
//this.plugin = plugin;
|
||||
}
|
||||
|
||||
public void scheduleSignUpdate(@NotNull Shop shop) {
|
||||
|
||||
@@ -36,7 +36,7 @@ public class SyncTaskWatcher {
|
||||
private Queue<InventoryEditContainer> inventoryEditQueue = new LinkedList<>();
|
||||
@Getter
|
||||
private Queue<ItemStack> itemStackRemoveQueue = new LinkedList<>();
|
||||
private QuickShop plugin;
|
||||
//private QuickShop plugin;
|
||||
|
||||
/**
|
||||
* SyncTaskWatcher is a loop task runner, it can be add from async thread and run in Bukkit main thread.
|
||||
@@ -44,7 +44,7 @@ public class SyncTaskWatcher {
|
||||
* @param plugin QuickShop instance
|
||||
*/
|
||||
public SyncTaskWatcher(QuickShop plugin) {
|
||||
this.plugin = plugin;
|
||||
//this.plugin = plugin;
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
Reference in new issue
Block a user