Removed 'registerEvents' so it can be done on both sides in main mod