changed kernel events to static class
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user