mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Use spigot.yml's view distance setting
This commit is contained in:
parent
3e8e275447
commit
de98ff5d80
@ -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 New Issue
Block a user