Cache nodes single core

This commit is contained in:
DanLT 2021-09-03 11:47:09 -08:00
parent 76bf764262
commit 548ed4a1f0
2 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ import com.volmit.iris.util.decree.virtual.VirtualDecreeCommand;
import com.volmit.iris.util.format.C; import com.volmit.iris.util.format.C;
import com.volmit.iris.util.plugin.IrisService; import com.volmit.iris.util.plugin.IrisService;
import com.volmit.iris.util.plugin.VolmitSender; import com.volmit.iris.util.plugin.VolmitSender;
import com.volmit.iris.util.scheduling.J;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerCommandPreprocessEvent; import org.bukkit.event.player.PlayerCommandPreprocessEvent;
@ -40,7 +41,7 @@ public class CommandSVC implements IrisService, DecreeSystem {
@Override @Override
public void onEnable() { public void onEnable() {
Iris.instance.getCommand("iris").setExecutor(this); Iris.instance.getCommand("iris").setExecutor(this);
getRoot().cacheAll(); J.a(() -> getRoot().cacheAll());
} }
@Override @Override

View File

@ -109,7 +109,7 @@ public class VirtualDecreeCommand {
VolmitSender sender = new VolmitSender(new CommandDummy()); VolmitSender sender = new VolmitSender(new CommandDummy());
if (isNode()) { if (isNode()) {
J.a(() -> sender.sendDecreeHelpNode(this)); sender.sendDecreeHelpNode(this);
} }
for (VirtualDecreeCommand j : nodes) { for (VirtualDecreeCommand j : nodes) {