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. :)
This commit is contained in:
feildmaster 2012-08-27 11:46:20 -05:00
parent 3307d489da
commit c710ca827f

View File

@ -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()) {