Make /factorio {factorio_command} no longer silent, even if /sc is used.
This commit is contained in:
parent
a52f991543
commit
d1c83ffc09
|
@ -40,6 +40,8 @@ class FactorioCommandProcessor(ClientCommandProcessor):
|
||||||
def _cmd_factorio(self, text: str) -> bool:
|
def _cmd_factorio(self, text: str) -> bool:
|
||||||
"""Send the following command to the bound Factorio Server."""
|
"""Send the following command to the bound Factorio Server."""
|
||||||
if self.ctx.rcon_client:
|
if self.ctx.rcon_client:
|
||||||
|
# TODO: Print the command non-silently only for race seeds, or otherwise block anything but /factorio /save in race seeds.
|
||||||
|
self.ctx.print_to_game(f"/factorio {text}")
|
||||||
result = self.ctx.rcon_client.send_command(text)
|
result = self.ctx.rcon_client.send_command(text)
|
||||||
if result:
|
if result:
|
||||||
self.output(result)
|
self.output(result)
|
||||||
|
|
Loading…
Reference in New Issue