Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Remove redundant syncInventory on world change
Dieser Commit ist enthalten in:
Ursprung
dd745e8842
Commit
23a94053b0
@ -473,13 +473,14 @@
|
|||||||
- worldserver.addEntity(entityplayer1);
|
- worldserver.addEntity(entityplayer1);
|
||||||
- this.players.add(entityplayer1);
|
- this.players.add(entityplayer1);
|
||||||
- this.j.put(entityplayer1.getUniqueID(), entityplayer1);
|
- this.j.put(entityplayer1.getUniqueID(), entityplayer1);
|
||||||
|
- entityplayer1.syncInventory();
|
||||||
+ if (!entityplayer.playerConnection.isDisconnected()) {
|
+ if (!entityplayer.playerConnection.isDisconnected()) {
|
||||||
+ worldserver.getPlayerChunkMap().addPlayer(entityplayer1);
|
+ worldserver.getPlayerChunkMap().addPlayer(entityplayer1);
|
||||||
+ worldserver.addEntity(entityplayer1);
|
+ worldserver.addEntity(entityplayer1);
|
||||||
+ this.players.add(entityplayer1);
|
+ this.players.add(entityplayer1);
|
||||||
+ this.j.put(entityplayer1.getUniqueID(), entityplayer1);
|
+ this.j.put(entityplayer1.getUniqueID(), entityplayer1);
|
||||||
+ }
|
+ }
|
||||||
entityplayer1.syncInventory();
|
+ // entityplayer1.syncInventory();
|
||||||
entityplayer1.setHealth(entityplayer1.getHealth());
|
entityplayer1.setHealth(entityplayer1.getHealth());
|
||||||
+ // Added from changeDimension
|
+ // Added from changeDimension
|
||||||
+ updateClient(entityplayer); // Update health, etc...
|
+ updateClient(entityplayer); // Update health, etc...
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren