aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortenplus1 <kinsellaja@yahoo.com>2020-05-16 14:43:45 +0100
committertenplus1 <kinsellaja@yahoo.com>2020-05-16 14:43:45 +0100
commitd32cc582c6ac60ace70d4192113c49b6c3e7c961 (patch)
treea5f4c1c184a10abab91a5c2ec6fc4e8eb667c547
parente6fbb585ad06343ade683057018a354c17dd4e1b (diff)
downloadmob_horse-d32cc582c6ac60ace70d4192113c49b6c3e7c961.tar.gz
mob_horse-d32cc582c6ac60ace70d4192113c49b6c3e7c961.tar.bz2
mob_horse-d32cc582c6ac60ace70d4192113c49b6c3e7c961.zip
use 'texture_mods' to overlay horseshoes
-rw-r--r--init.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/init.lua b/init.lua
index dbff24f..88d6277 100644
--- a/init.lua
+++ b/init.lua
@@ -181,12 +181,8 @@ mobs:register_mob("mob_horse:horse", {
-- apply horseshoe overlay to current horse texture
if overlay then
-
- local ov = self.base_texture
-
- ov[1] = ov[1] .. "^" .. overlay
-
- self.object:set_properties({textures = ov})
+ self.texture_mods = "^" .. overlay
+ self.object:set_texture_mod(self.texture_mods)
end
-- show horse speed and jump stats with shoes fitted