Bloodmoon icon indicating copy to clipboard operation
Bloodmoon copied to clipboard

Players able to sleep through blood moon with NoSleep=true

Open t2pellet opened this issue 7 years ago • 3 comments

Title explains the issue. Bloodmoon version 1.5.1 (MC1.10.2) forge-1.10.2-12.18.3.2254-universal Sponge is included on the server. (spongeforge-1.10.2-2254-5.2.0-BETA-2254) Lots of other mods but i dont see why they would cause issues, but they incl foamfix, surge and betterfps

t2pellet avatar Sep 10 '17 17:09 t2pellet

Probably should note this is with vanilla beds, and that the message "You don't feel tired enough to sleep" still pops up.

t2pellet avatar Sep 10 '17 17:09 t2pellet

So can you reproduce this with only the Bloodmoon mod installed? (Without sponge)

lumien231 avatar Sep 13 '17 11:09 lumien231

With a friends modpack we have this issue too, the morpheus sleep mod (and possibly quarks sleep feature too) does some weird stuff that makes cancelling PlayerSleepInBedEvent ineffective.

I have an invasion mod that I've been testing a lot recently that also prevents sleep during some nights, here is my workaround to the problem, basically kick them out of bed if they somehow get into it:

https://github.com/Corosauce/HostileWorlds_Invasions/blob/1.12.x/src/main/java/com/corosus/inv/InvasionManager.java#L154-L165

Tested with many players, works great!

Corosauce avatar Feb 09 '19 04:02 Corosauce