mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 00:17:58 +01:00
Reintroduced two phase chunk sending
This commit is contained in:
parent
de7241ef6c
commit
b75a034b2d
@ -655,6 +655,8 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||||||
|
|
||||||
super.setInstance(instance, spawnPosition);
|
super.setInstance(instance, spawnPosition);
|
||||||
|
|
||||||
|
refreshVisibleChunks();
|
||||||
|
|
||||||
if (differentSpawnPos && !firstSpawn) {
|
if (differentSpawnPos && !firstSpawn) {
|
||||||
// Player changed instance at a different position
|
// Player changed instance at a different position
|
||||||
teleport(spawnPosition);
|
teleport(spawnPosition);
|
||||||
@ -2593,6 +2595,10 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||||||
private byte displayedSkinParts;
|
private byte displayedSkinParts;
|
||||||
private MainHand mainHand;
|
private MainHand mainHand;
|
||||||
|
|
||||||
|
public PlayerSettings() {
|
||||||
|
viewDistance = 2;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The player game language.
|
* The player game language.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user