1
0
mirror of https://github.com/luanti-org/luanti.git synced 2026-01-01 10:45:32 +01: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

@@ -122,6 +122,7 @@ public:
v3f getAcceleration();
void setTextureMod(const std::string &mod);
std::string getTextureMod() const;
void setSprite(v2s16 p, int num_frames, float framelength,
bool select_horiz_by_yawpitch);
std::string getName();
@@ -143,6 +144,7 @@ private:
v3f m_last_sent_velocity;
float m_last_sent_position_timer;
float m_last_sent_move_precision;
std::string m_current_texture_modifier;
};
/*