1.20-pre2
This commit is contained in:
1 parent
344b0a5b7c
commit
044c66388a
6 files changed
+12
-11
No files matched your search
@@ -533,11 +533,11 @@ public class Auxiliary
|
||||
Component message = FormattedTextValue.getTextByValue(res);
|
||||
if (targets == null)
|
||||
{
|
||||
s.sendSuccess(message, false);
|
||||
s.sendSuccess(() -> message, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
targets.forEach(p -> p.sendSuccess(message, false));
|
||||
targets.forEach(p -> p.sendSuccess(() -> message, false));
|
||||
}
|
||||
return res; // pass through for variables
|
||||
});
|
||||
|
||||
@@ -20,6 +20,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.BinaryOperator;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public class SnoopyCommandSource extends CommandSourceStack
|
||||
{
|
||||
@@ -196,9 +197,9 @@ public class SnoopyCommandSource extends CommandSourceStack
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendSuccess(Component message, boolean broadcastToOps)
|
||||
public void sendSuccess(Supplier<Component> message, boolean broadcastToOps)
|
||||
{
|
||||
chatOutput.add(message);
|
||||
chatOutput.add(message.get());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user