mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-23 17:20:22 +01:00
replace deprecated settexturemod with set_texture_mod
This commit is contained in:
parent
c7838e5517
commit
2ca012e30b
6
api.lua
6
api.lua
@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
|
||||
|
||||
mobs = {
|
||||
mod = "redo",
|
||||
version = "20190630",
|
||||
version = "20190813",
|
||||
intllib = S,
|
||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||
}
|
||||
@ -2235,9 +2235,9 @@ function mob_class:do_states(dtime)
|
||||
self.blinktimer = 0
|
||||
|
||||
if self.blinkstatus then
|
||||
self.object:settexturemod("")
|
||||
self.object:set_texture_mod("")
|
||||
else
|
||||
self.object:settexturemod("^[brighten")
|
||||
self.object:set_texture_mod("^[brighten")
|
||||
end
|
||||
|
||||
self.blinkstatus = not self.blinkstatus
|
||||
|
Loading…
Reference in New Issue
Block a user