forked from mtcontrib/mobs_redo
Disabled hit re-colour as it can cause hit-lag with larger textures
This commit is contained in:
parent
2aa6227f0a
commit
6fea1e1b85
16
api.lua
16
api.lua
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
-- Mobs Api (17th August 2016)
|
-- Mobs Api (3rd September 2016)
|
||||||
|
|
||||||
mobs = {}
|
mobs = {}
|
||||||
mobs.mod = "redo"
|
mobs.mod = "redo"
|
||||||
@ -1906,14 +1906,14 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- add healthy afterglow when hit
|
-- add healthy afterglow when hit (can causehit lag with larger textures)
|
||||||
core.after(0.1, function()
|
-- core.after(0.1, function()
|
||||||
self.object:settexturemod("^[colorize:#c9900070")
|
-- self.object:settexturemod("^[colorize:#c9900070")
|
||||||
|
|
||||||
core.after(0.3, function()
|
-- core.after(0.3, function()
|
||||||
self.object:settexturemod("")
|
-- self.object:settexturemod("")
|
||||||
end)
|
-- end)
|
||||||
end)
|
-- end)
|
||||||
|
|
||||||
-- blood_particles
|
-- blood_particles
|
||||||
if self.blood_amount > 0
|
if self.blood_amount > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user