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)-> {
Peripheral.instance.getRedstone(args[0]).setOutput(true);
return true;
});
},"<side>");
registerSyncSubcommand("off", (args)-> {
Peripheral.instance.getRedstone(args[0]).setOutput(false);
return true;
});
},"<side>");
registerSyncSubcommand("get", (args)-> {
var value = Peripheral.instance.getRedstone(args[0]).getAnalogInput();
handle.write("Analog input: " + value);
return true;
});
},"<side>");
}
}