removed unused kernel events

This commit is contained in:
Djeeberjr 2023-03-20 01:19:52 +01:00
parent 204e464b1b
commit 05fa6203d1

View File

@ -45,7 +45,6 @@ class KernelEvents {
public final onPaste:Signal<String>; public final onPaste:Signal<String>;
public final onPeripheral:Signal<String>; public final onPeripheral:Signal<String>;
public final onPeripheralDetach:Signal<String>; public final onPeripheralDetach:Signal<String>;
public final onRednetMessage:Signal<{sender:Int, message:Any, protocol:Any}>;
public final onRedstone:Signal<Noise>; public final onRedstone:Signal<Noise>;
public final onSpeakerAudioEmpty:Signal<String>; public final onSpeakerAudioEmpty:Signal<String>;
public final onTaskComplete:Signal<{id:Int, success:Bool, failedReason:String}>; public final onTaskComplete:Signal<{id:Int, success:Bool, failedReason:String}>;
@ -117,7 +116,6 @@ class KernelEvents {
this.onPaste = onPasteTrigger.asSignal(); this.onPaste = onPasteTrigger.asSignal();
this.onPeripheral = onPeripheralTrigger.asSignal(); this.onPeripheral = onPeripheralTrigger.asSignal();
this.onPeripheralDetach = onPeripheralDetachTrigger.asSignal(); this.onPeripheralDetach = onPeripheralDetachTrigger.asSignal();
this.onRednetMessage = onRednetMessageTrigger.asSignal();
this.onRedstone = onRedstoneTrigger.asSignal(); this.onRedstone = onRedstoneTrigger.asSignal();
this.onSpeakerAudioEmpty = onSpeakerAudioEmptyTrigger.asSignal(); this.onSpeakerAudioEmpty = onSpeakerAudioEmptyTrigger.asSignal();
this.onTaskComplete = onTaskCompleteTrigger.asSignal(); this.onTaskComplete = onTaskCompleteTrigger.asSignal();
@ -194,8 +192,6 @@ class KernelEvents {
this.onPeripheralTrigger.trigger(event[2]); this.onPeripheralTrigger.trigger(event[2]);
case "peripheral_detach": case "peripheral_detach":
this.onPeripheralDetachTrigger.trigger(event[2]); this.onPeripheralDetachTrigger.trigger(event[2]);
case "rednet_message":
this.onRednetMessageTrigger.trigger({sender: event[2], message: event[3], protocol: event[4]});
case "redstone": case "redstone":
this.onRedstoneTrigger.trigger(null); this.onRedstoneTrigger.trigger(null);
case "speaker_audio_empty": case "speaker_audio_empty":