mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-07-01 07:50:23 +02:00
add mobs:is_invisible() function, update api.txt
This commit is contained in:
6
api.lua
6
api.lua
@ -19,7 +19,7 @@ end
|
||||
|
||||
mobs = {
|
||||
mod = "redo",
|
||||
version = "20241114",
|
||||
version = "20241116",
|
||||
spawning_mobs = {},
|
||||
translate = S,
|
||||
node_snow = has(minetest.registered_aliases["mapgen_snow"])
|
||||
@ -1217,6 +1217,10 @@ local function is_invisible(self, player_name)
|
||||
end
|
||||
end
|
||||
|
||||
function mobs:is_invisible(self, player_name)
|
||||
return is_invisible(self, player_name)
|
||||
end
|
||||
|
||||
-- should mob follow what I'm holding ?
|
||||
|
||||
function mob_class:follow_holding(clicker)
|
||||
|
Reference in New Issue
Block a user