fixed missing Synopsys in Redstone

This commit is contained in:
Djeeberjr 2023-06-25 21:21:15 +02:00
parent 7861135c05
commit b60c9774e1

View File

@ -10,17 +10,17 @@ class Redstone extends CLIAppBase{
registerSyncSubcommand("on", (args)-> { registerSyncSubcommand("on", (args)-> {
Peripheral.instance.getRedstone(args[0]).setOutput(true); Peripheral.instance.getRedstone(args[0]).setOutput(true);
return true; return true;
}); },"<side>");
registerSyncSubcommand("off", (args)-> { registerSyncSubcommand("off", (args)-> {
Peripheral.instance.getRedstone(args[0]).setOutput(false); Peripheral.instance.getRedstone(args[0]).setOutput(false);
return true; return true;
}); },"<side>");
registerSyncSubcommand("get", (args)-> { registerSyncSubcommand("get", (args)-> {
var value = Peripheral.instance.getRedstone(args[0]).getAnalogInput(); var value = Peripheral.instance.getRedstone(args[0]).getAnalogInput();
handle.write("Analog input: " + value); handle.write("Analog input: " + value);
return true; return true;
}); },"<side>");
} }
} }