From 1d9674721f7de2d3daa7e7fc373d6bc8157f0b79 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 6 Feb 2025 08:59:22 +0000 Subject: [PATCH] make eat grass block false by default --- cow.lua | 2 +- settingtypes.txt | 2 +- sheep.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cow.lua b/cow.lua index a953d16..687484d 100644 --- a/cow.lua +++ b/cow.lua @@ -3,7 +3,7 @@ local S = minetest.get_translator("mobs_animal") -- should cows eat grass blocks and mess up the environment? -local eat_gb = minetest.settings:get_bool("mobs_animal.eat_grass_block") ~= false +local eat_gb = minetest.settings:get_bool("mobs_animal.eat_grass_block") local replace_what = { {"group:grass", "air", 0} } if eat_gb then diff --git a/settingtypes.txt b/settingtypes.txt index de757f6..405d8ed 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -10,4 +10,4 @@ mobs_animal.sheep (Enable Sheep) bool true mobs_animal.warthog (Enable Warthog) bool true mobs_animal.hairball (Enable Kitten Hairball drops) bool true -mobs_animal.eat_grass_block (Enable Cow/Sheep eating grass blocks) bool true +mobs_animal.eat_grass_block (Enable Cow/Sheep eating grass blocks) bool false diff --git a/sheep.lua b/sheep.lua index 7d062c2..d56401e 100644 --- a/sheep.lua +++ b/sheep.lua @@ -6,7 +6,7 @@ local random = math.random -- should sheep eat grass blocks and mess up the environment? -local eat_gb = minetest.settings:get_bool("mobs_animal.eat_grass_block") ~= false +local eat_gb = minetest.settings:get_bool("mobs_animal.eat_grass_block") local replace_what = { {"group:grass", "air", -1} } if eat_gb then