Use spigot.yml's view distance setting

This commit is contained in:
Zach Brown 2015-08-29 03:12:41 -05:00
parent 3e8e275447
commit de98ff5d80

View File

@ -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
--