1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00

Add Entity get_texture_mod() to Lua API

Send texture modifier to clients connecting later too
This commit is contained in:
sapier 2017-01-14 19:32:10 +01:00
parent 72535d3328
commit c57b4ff9b5
7 changed files with 53 additions and 8 deletions

View file

@ -102,6 +102,8 @@ private:
float m_anim_timer;
ItemGroupList m_armor_groups;
float m_reset_textures_timer;
std::string m_previous_texture_modifier; // stores texture modifier before punch update
std::string m_current_texture_modifier; // last applied texture modifier
bool m_visuals_expired;
float m_step_distance_counter;
u8 m_last_light;
@ -198,7 +200,7 @@ public:
void updateTexturePos();
void updateTextures(const std::string &mod);
void updateTextures(const std::string mod);
void updateAnimation();