changed kernel events to static class

This commit is contained in:
2023-07-27 20:30:39 +02:00
parent adc5ab1849
commit e1e0180502
12 changed files with 154 additions and 156 deletions

View File

@@ -22,7 +22,7 @@ class Modem implements INetworkInterface implements IPeripheral {
this.native = Peripheral.wrap(addr);
this.addr = addr;
KernelEvents.instance.onModemMessage.handle(params ->{
KernelEvents.onModemMessage.handle(params ->{
try{
if (params.addr == this.addr){
var pack:GenericPackage = {