From 313adcfbb0eb874a300abfa350ca72058ddababe Mon Sep 17 00:00:00 2001 From: Sergey Shatunov Date: Sat, 6 Feb 2016 00:09:26 +0700 Subject: [PATCH] Fix PlayerCloneEvent.wasDeath (close #335) --- .../server/management/ServerConfigurationManager.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/net/minecraft/server/management/ServerConfigurationManager.java.patch b/patches/net/minecraft/server/management/ServerConfigurationManager.java.patch index 738e3ff..f8fca46 100644 --- a/patches/net/minecraft/server/management/ServerConfigurationManager.java.patch +++ b/patches/net/minecraft/server/management/ServerConfigurationManager.java.patch @@ -506,7 +506,7 @@ + // CraftBukkit start + EntityPlayerMP entityplayermp1 = par1EntityPlayerMP; + 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; ChunkCoordinates chunkcoordinates1; + boolean isBedSpawn = false;