Don't reload Sponge persisted subjects when a save is pending

This commit is contained in:
Luck
2018-06-03 20:46:50 +01:00
Unverified
parent 8cf0f7da5f
commit 4d7be13c16
3 changed files with 22 additions and 11 deletions
@@ -34,7 +34,7 @@ public class UpdateTaskBuffer extends BufferedRequest<Void> {
private final LuckPermsPlugin plugin;
public UpdateTaskBuffer(LuckPermsPlugin plugin) {
super(250L, TimeUnit.MILLISECONDS, plugin.getBootstrap().getScheduler());
super(500L, TimeUnit.MILLISECONDS, plugin.getBootstrap().getScheduler());
this.plugin = plugin;
}
@@ -54,11 +54,6 @@ public interface PhasedStorage extends Storage {
new Class[]{PhasedStorage.class},
(proxy, method, args) -> {
// provide implementation of #noBuffer
if (method.getName().equals("noBuffer")) {
return delegate;
}
// direct delegation
switch (method.getName()) {
case "getDao":