3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

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. :)
Dieser Commit ist enthalten in:
feildmaster 2012-08-27 11:46:20 -05:00
Ursprung 3307d489da
Commit c710ca827f

Datei anzeigen

@ -395,6 +395,7 @@ public abstract class ServerConfigurationManagerAbstract {
this.players.add(entityplayer1); this.players.add(entityplayer1);
// CraftBukkit start - added from changeDimension // CraftBukkit start - added from changeDimension
this.updateClient(entityplayer1); // CraftBukkit this.updateClient(entityplayer1); // CraftBukkit
entityplayer1.updateAbilities();
Iterator iterator = entityplayer1.getEffects().iterator(); Iterator iterator = entityplayer1.getEffects().iterator();
while (iterator.hasNext()) { while (iterator.hasNext()) {