projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65b2a2c
)
Fix TNT script
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 26 Nov 2011 10:47:31 +0000
(12:47 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 29 Nov 2011 17:13:53 +0000
(19:13 +0200)
data/mods/default/init.lua
patch
|
blob
|
history
diff --git
a/data/mods/default/init.lua
b/data/mods/default/init.lua
index b9af94be6fa2e749918f747de1f215775e1ea740..88f457e290a8c16b58665c15038110b77c09894a 100644
(file)
--- 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