forked from Mirrorlandia_minetest/minetest
Fix TNT script
This commit is contained in:
parent
65b2a2cb02
commit
b58dc083a9
@ -1195,12 +1195,12 @@ function TNT:on_step(dtime)
|
|||||||
self.blinktimer = self.blinktimer + dtime
|
self.blinktimer = self.blinktimer + dtime
|
||||||
if self.blinktimer > 0.5 then
|
if self.blinktimer > 0.5 then
|
||||||
self.blinktimer = self.blinktimer - 0.5
|
self.blinktimer = self.blinktimer - 0.5
|
||||||
if blinkstatus then
|
if self.blinkstatus then
|
||||||
self.object:settexturemod("")
|
self.object:settexturemod("")
|
||||||
else
|
else
|
||||||
self.object:settexturemod("^[brighten")
|
self.object:settexturemod("^[brighten")
|
||||||
end
|
end
|
||||||
blinkstatus = not blinkstatus
|
self.blinkstatus = not self.blinkstatus
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user