fixed missing Synopsys in Redstone
This commit is contained in:
parent
7861135c05
commit
b60c9774e1
@ -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>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user