mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Use spigot.yml's view distance setting
This commit is contained in:
parent
3e8e275447
commit
de98ff5d80
1 changed files with 2 additions and 4 deletions
|
@ -20,7 +20,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
|
||||
public EntityPlayer(MinecraftServer minecraftserver, WorldServer worldserver, GameProfile gameprofile, PlayerInteractManager playerinteractmanager) {
|
||||
super(worldserver, gameprofile);
|
||||
+ this.viewDistance = worldserver.getServer().getViewDistance(); // PaperSpigot - Player view distance API
|
||||
+ this.viewDistance = world.spigotConfig.viewDistance; // PaperSpigot - Player view distance API
|
||||
playerinteractmanager.player = this;
|
||||
this.playerInteractManager = playerinteractmanager;
|
||||
BlockPosition blockposition = worldserver.getSpawn();
|
||||
|
@ -134,6 +134,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
};
|
||||
|
||||
public Player.Spigot spigot()
|
||||
--
|
||||
1.9.5.msysgit.1
|
||||
|
||||
--
|
Loading…
Reference in a new issue