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

@@ -63,7 +63,7 @@ class Redstone implements IPeripheral implements IExportable {
updateState();
KernelEvents.instance.onRedstone.handle(()->{
KernelEvents.onRedstone.handle(()->{
if ((this.getAnalogInput() != this.analogInputState) || (this.bundleInputState != this.getBundledInput())){
updateState();
this.onChangeTrigger.trigger(null);