summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-03-26 20:29:34 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-03-26 20:29:34 +0100
commite1f7453ee52c280af7c243cbe6290d14b692a0d4 (patch)
tree9ef6b1286f7ba0b47717f9335c474f225793cdb0
parenta37e38da6071146947e3d1ecc087725846bbd1b4 (diff)
tidy code
-rw-r--r--api.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.lua b/api.lua
index 04b908d..7f9b087 100644
--- a/api.lua
+++ b/api.lua
@@ -1,5 +1,5 @@
--- Mobs Api (24th March 2017)
+-- Mobs Api (26th March 2017)
mobs = {}
mobs.mod = "redo"
@@ -2442,7 +2442,7 @@ minetest.register_entity(name, {
dogshoot_switch = def.dogshoot_switch,
dogshoot_count = 0,
dogshoot_count_max = def.dogshoot_count_max or 5,
- dogshoot_count2_max = def.dogshoot_count2_max or dogshoot_count_max,
+ dogshoot_count2_max = def.dogshoot_count2_max or (def.dogshoot_count_max or 5),
attack_animals = def.attack_animals or false,
specific_attack = def.specific_attack,