KubeJS

KubeJS

61M Downloads

Latest Fabric 1.18 KubeJS update breaks events

itsdinkd opened this issue ยท 1 comments

commented

[17:35:45] [ERR ] Error loading KubeJS script: ReferenceError: "events" is not defined. (server_scripts:balancing.js#5)
[17:35:45] [ERR ] Error loading KubeJS script: ReferenceError: "events" is not defined. (server_scripts:conflicting.js#7)
[17:35:45] [ERR ] Error loading KubeJS script: ReferenceError: "events" is not defined. (server_scripts:removing.js#4)
[17:35:45] [ERR ] Error loading KubeJS script: ReferenceError: "events" is not defined. (server_scripts:unifying.js#119)

events.listen("recipes", function (event) { This is now broken, 'events' isnt recognized.

commented

This change was announced a long time ago, you should be using onEvent instead of events.listen and postEvent instead of events.post(Cancellable)