summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-09-03 19:57:33 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-09-03 19:57:33 +0100
commit6fea1e1b857c76a7ca7715a433de95ca2c79fda2 (patch)
tree3daa9e98063fef7a1e88dd6f5e49298dac4bdca4
parent2aa6227f0a03d20a6c4733f74c46612bd33e0be1 (diff)
Disabled hit re-colour as it can cause hit-lag with larger textures
-rw-r--r--api.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/api.lua b/api.lua
index 1d966e4..28d159a 100644
--- a/api.lua
+++ b/api.lua
@@ -1,5 +1,5 @@
--- Mobs Api (17th August 2016)
+-- Mobs Api (3rd September 2016)
mobs = {}
mobs.mod = "redo"
@@ -1906,14 +1906,14 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
return
end
- -- add healthy afterglow when hit
- core.after(0.1, function()
- self.object:settexturemod("^[colorize:#c9900070")
+ -- add healthy afterglow when hit (can causehit lag with larger textures)
+-- core.after(0.1, function()
+-- self.object:settexturemod("^[colorize:#c9900070")
- core.after(0.3, function()
- self.object:settexturemod("")
- end)
- end)
+-- core.after(0.3, function()
+-- self.object:settexturemod("")
+-- end)
+-- end)
-- blood_particles
if self.blood_amount > 0