1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2024-12-23 01:10:25 +01:00

update intllib

This commit is contained in:
TenPlus1 2017-07-09 14:09:34 +01:00
parent b40fe3a2c7
commit 1c3d11ca30
2 changed files with 13 additions and 3 deletions

View File

@ -3,8 +3,14 @@ local path = minetest.get_modpath("mobs_animal")
-- Intllib -- Intllib
local S local S
if minetest.get_modpath("intllib") then if minetest.global_exists("intllib") then
if intllib.make_gettext_pair then
-- New method using gettext.
S = intllib.make_gettext_pair()
else
-- Old method using text files.
S = intllib.Getter() S = intllib.Getter()
end
else else
S = function(s) return s end S = function(s) return s end
end end

View File

@ -69,7 +69,11 @@ for _, col in ipairs(all_colours) do
replace_with = "air", replace_with = "air",
replace_offset = -1, replace_offset = -1,
fear_height = 3, fear_height = 3,
--[[
on_replace = function(self, pos, oldnode, newnode)
print ("---- replaced") ; return false -- false to keep node, true to replace
end,
]]
on_rightclick = function(self, clicker) on_rightclick = function(self, clicker)
--are we feeding? --are we feeding?