use 'texture_mods' to overlay horseshoes

Este commit está contenido en:
tenplus1 2020-05-16 14:43:45 +01:00
padre e6fbb585ad
commit d32cc582c6
Se han modificado 1 ficheros con 2 adiciones y 6 borrados

Ver fichero

@ -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