From 0a1a39cc4ff039dd7ade3e5bfe445ec144cad369 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 2 Jul 2020 00:23:17 -0500 Subject: [PATCH] Use variable for mc view dist --- roles/minecraft/defaults/main.yml | 1 + roles/minecraft/templates/server.properties | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/minecraft/defaults/main.yml b/roles/minecraft/defaults/main.yml index 56b4588..6c2b0bd 100644 --- a/roles/minecraft/defaults/main.yml +++ b/roles/minecraft/defaults/main.yml @@ -7,3 +7,4 @@ mcgensettings: "" mcgamemode: 0 mcheapmax: 3072 mcheapmin: 512 +mcviewdist: 12 diff --git a/roles/minecraft/templates/server.properties b/roles/minecraft/templates/server.properties index 33d3983..d825054 100644 --- a/roles/minecraft/templates/server.properties +++ b/roles/minecraft/templates/server.properties @@ -34,5 +34,5 @@ spawn-monsters=true spawn-npcs=true spawn-protection=0 use-native-transport=true -view-distance=12 +view-distance={{ mcviewdist }} white-list=false