mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Make TNT blink totally white
This commit is contained in:
parent
cc119a717c
commit
a333c5a177
2 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ local TNT = {
|
|||
function TNT:on_activate(staticdata)
|
||||
self.object:setvelocity({x=0, y=4, z=0})
|
||||
self.object:setacceleration({x=0, y=-10, z=0})
|
||||
self.object:settexturemod("^[brighten")
|
||||
self.object:settexturemod("^tnt_blink.png")
|
||||
end
|
||||
|
||||
function TNT:on_step(dtime)
|
||||
|
@ -85,7 +85,7 @@ function TNT:on_step(dtime)
|
|||
if self.blinkstatus then
|
||||
self.object:settexturemod("")
|
||||
else
|
||||
self.object:settexturemod("^[brighten")
|
||||
self.object:settexturemod("^tnt_blink.png")
|
||||
end
|
||||
self.blinkstatus = not self.blinkstatus
|
||||
end
|
||||
|
|
BIN
mods/tnt/textures/tnt_blink.png
Normal file
BIN
mods/tnt/textures/tnt_blink.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 151 B |
Loading…
Reference in a new issue