From c710ca827f6a58b9464a94945f0e3b54e83fabbd Mon Sep 17 00:00:00 2001 From: feildmaster Date: Mon, 27 Aug 2012 11:46:20 -0500 Subject: [PATCH] Fix BUKKIT-2419: PlayerAbilities not being updated on teleport/respawn Minecraft resets abilities based on what it knows client side, when someone dies and is in "survival," by default they should be in "survival." However, we allow modification of the PlayerAbilities, so we send this update out to the client. Oh and, the format of the commit is like this to see if it looks any good. :) --- .../net/minecraft/server/ServerConfigurationManagerAbstract.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java b/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java index 7111bab41a..aa9c317a53 100644 --- a/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java @@ -395,6 +395,7 @@ public abstract class ServerConfigurationManagerAbstract { this.players.add(entityplayer1); // CraftBukkit start - added from changeDimension this.updateClient(entityplayer1); // CraftBukkit + entityplayer1.updateAbilities(); Iterator iterator = entityplayer1.getEffects().iterator(); while (iterator.hasNext()) {