Fix TNT script

master
Perttu Ahola 2011-11-26 12:47:31 +02:00
parent 65b2a2cb02
commit b58dc083a9
1 changed files with 2 additions and 2 deletions

View File

@ -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