mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-05 23:36:12 +00:00
Only compute if absent/present if compute is not needed (locking opts)
This commit is contained in:
@@ -499,11 +499,7 @@ public class VolmitSender implements CommandSender {
|
||||
|
||||
public void sendDecreeHelpNode(VirtualDecreeCommand i) {
|
||||
if (isPlayer() || s instanceof CommandDummy) {
|
||||
sendMessageRaw(helpCache.compute(i.getPath(), (k, v) -> {
|
||||
if (v != null) {
|
||||
return v;
|
||||
}
|
||||
|
||||
sendMessageRaw(helpCache.computeIfAbsent(i.getPath(), (k) -> {
|
||||
String newline = "<reset>\n";
|
||||
|
||||
/// Command
|
||||
|
||||
Reference in New Issue
Block a user