forked from xjboss/KCauldronX
Fix PlayerCloneEvent.wasDeath (close #335)
This commit is contained in:
parent
30d7378fda
commit
313adcfbb0
@ -506,7 +506,7 @@
|
|||||||
+ // CraftBukkit start
|
+ // CraftBukkit start
|
||||||
+ EntityPlayerMP entityplayermp1 = par1EntityPlayerMP;
|
+ EntityPlayerMP entityplayermp1 = par1EntityPlayerMP;
|
||||||
+ entityplayermp1.setWorld(this.mcServer.worldServerForDimension(par1EntityPlayerMP.dimension)); // make sure to update reference for bed spawn logic
|
+ entityplayermp1.setWorld(this.mcServer.worldServerForDimension(par1EntityPlayerMP.dimension)); // make sure to update reference for bed spawn logic
|
||||||
+ MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.entity.player.PlayerEvent.Clone(entityplayermp1, entityplayermp1, !returnFromEnd));
|
+ MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.entity.player.PlayerEvent.Clone(entityplayermp1, entityplayermp1, cause == TeleportCause.DEATH));
|
||||||
+ entityplayermp1.playerConqueredTheEnd = false;
|
+ entityplayermp1.playerConqueredTheEnd = false;
|
||||||
ChunkCoordinates chunkcoordinates1;
|
ChunkCoordinates chunkcoordinates1;
|
||||||
+ boolean isBedSpawn = false;
|
+ boolean isBedSpawn = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user