aboutsummaryrefslogtreecommitdiff
path: root/data/mods
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-26 12:47:31 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:53 +0200
commitb58dc083a98ee6c7668c8ec598034dc8a8a34db9 (patch)
treebcb77d81e43bfb8f07f650e62480978222b94237 /data/mods
parent65b2a2cb02098a6806540f5049398e3dbec4675d (diff)
downloadminetest-b58dc083a98ee6c7668c8ec598034dc8a8a34db9.tar.gz
minetest-b58dc083a98ee6c7668c8ec598034dc8a8a34db9.tar.bz2
minetest-b58dc083a98ee6c7668c8ec598034dc8a8a34db9.zip
Fix TNT script
Diffstat (limited to 'data/mods')
-rw-r--r--data/mods/default/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index b9af94be6..88f457e29 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -1195,12 +1195,12 @@ function TNT:on_step(dtime)
self.blinktimer = self.blinktimer + dtime
if self.blinktimer > 0.5 then
self.blinktimer = self.blinktimer - 0.5
- if blinkstatus then
+ if self.blinkstatus then
self.object:settexturemod("")
else
self.object:settexturemod("^[brighten")
end
- blinkstatus = not blinkstatus
+ self.blinkstatus = not self.blinkstatus
end
end