From b58dc083a98ee6c7668c8ec598034dc8a8a34db9 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 26 Nov 2011 12:47:31 +0200 Subject: [PATCH] Fix TNT script --- data/mods/default/init.lua | 4 ++-- 1 file 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 -- 2.25.1