Waystones

Waystones

123M Downloads

[Mod Compat] use SetSpawnPoint instead of setSpawnChunk

UpcraftLP opened this issue ยท 0 comments

commented

Hello,
I've run into some issues with adding a feature to my mod and making it compatible with yours.

In the waystones block (here) you use EntityPlayer#setSpawnChunk() to set the player's spawn point.
Could you change this to EntityPlayer#setSpawnPoint()?
that method effectively calls setSpawnChunk but fires a PlayerSetSpawnEvent other mods can hook into.

I need this so I can catch the spawn point for my mod that lets you choose from several respawn points upon death (link).

Thanks in advance, Upcraft.