Vampirism - Become a vampire!

Vampirism - Become a vampire!

16M Downloads

Error occured at 1.12.2 ...2854 [Bug]

Taknax opened this issue ยท 8 comments

commented

Their is a bug on my modpack. Game crashed.

https://pastebin.com/9QiWDV3b

commented

This can probably be fixed on our end even though it is likely that some other mod is the root cause.
However, it might take some time until the next version is released

commented

Ty for considering and this awesome mod!

commented

This is an issue from PlayerRevive (CreativeMD/PlayerRevive#54). It fakes a player to lay in the bed to make the lay animation work. Sorry for the mess :|

commented

Thank you for narrowing it down and identifying the root cause!

@CreativeMD
Is it possible to also set the EntityPlayer#bedLocation when faking the player as sleeping? There might be more mods that expect a bedLocation to be present when the player is sleeping since this is always the case in Vanilla.

As a workaround we could add an additional check to Vampirism (which probably should have been there in the first place). However, I really would like to avoid that as my 1.12 workspace is dusted and Gradle gave me a hard time the last time I tried to revive it.

commented

Sorry for not responding earlier, I just set it bedLocation to 0,0,0. Hope that fixes the issue.

commented

Awesome, thank you!

@Taknax let me know if the issue should still persist with the new PlayerRevive version

commented

Can you provide more context?
Does this occur frequently, sometimes, just once? What were you doing at that point.
Seems like some mod is somehow messing with the sleep system

Dev Note:
Nullpointer here:

IBlockState state = mc.player.getEntityWorld().getBlockState(mc.player.bedLocation);

commented

it happen when i got attacked by vampires in the vampireforest. I have morpheus intalled for sleep voting and Opticmanager tp longer the daytime 2x.