summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfeildmaster <admin@feildmaster.com>2012-08-27 11:46:20 -0500
committerfeildmaster <admin@feildmaster.com>2012-08-27 12:02:25 -0500
commitc710ca827f6a58b9464a94945f0e3b54e83fabbd (patch)
tree723cc13ccffa55d6531f934ca4e6acbfc11f8860
parent3307d489da30d0d2c32fdd5ea834d790b2ee68dc (diff)
downloadcraftbukkit-c710ca827f6a58b9464a94945f0e3b54e83fabbd.tar
craftbukkit-c710ca827f6a58b9464a94945f0e3b54e83fabbd.tar.gz
craftbukkit-c710ca827f6a58b9464a94945f0e3b54e83fabbd.tar.lz
craftbukkit-c710ca827f6a58b9464a94945f0e3b54e83fabbd.tar.xz
craftbukkit-c710ca827f6a58b9464a94945f0e3b54e83fabbd.zip
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. :)
-rw-r--r--src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java b/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java
index 7111bab4..aa9c317a 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()) {