Run ForgeEventFactory.onSleepFinished when Improved Sleeping sets the time to day
Insane96 opened this issue ยท 0 comments
This way other mods can properly hook on the event.
https://github.com/Vazkii/Quark/blob/master/src/main/java/vazkii/quark/tweaks/module/ImprovedSleepingModule.java#L155
Much like it's done in vanilla
world.setDayTime(net.minecraftforge.event.ForgeEventFactory.onSleepFinished(this, time - time % 24000L, this.getDayTime()));