mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Remove redundant syncInventory on world change
By: md_5 <git@md-5.net>
This commit is contained in:
parent
1a382d5c02
commit
6a2a8d0d3f
1 changed files with 2 additions and 1 deletions
|
@ -473,13 +473,14 @@
|
|||
- worldserver.addEntity(entityplayer1);
|
||||
- this.players.add(entityplayer1);
|
||||
- this.j.put(entityplayer1.getUniqueID(), entityplayer1);
|
||||
- entityplayer1.syncInventory();
|
||||
+ if (!entityplayer.playerConnection.isDisconnected()) {
|
||||
+ worldserver.getPlayerChunkMap().addPlayer(entityplayer1);
|
||||
+ worldserver.addEntity(entityplayer1);
|
||||
+ this.players.add(entityplayer1);
|
||||
+ this.j.put(entityplayer1.getUniqueID(), entityplayer1);
|
||||
+ }
|
||||
entityplayer1.syncInventory();
|
||||
+ // entityplayer1.syncInventory();
|
||||
entityplayer1.setHealth(entityplayer1.getHealth());
|
||||
+ // Added from changeDimension
|
||||
+ updateClient(entityplayer); // Update health, etc...
|
||||
|
|
Loading…
Reference in a new issue