mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 14:04:51 +08: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. :)
This commit is contained in:
parent
3307d489da
commit
c710ca827f
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user