mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Avoid duplication of mod metadata in memory (#12562)
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
03428d9825
commit
f4a01f3a5d
37 changed files with 527 additions and 272 deletions
|
@ -181,7 +181,7 @@ public:
|
|||
v3f getEyeOffset() const;
|
||||
float getZoomFOV() const;
|
||||
|
||||
inline Metadata &getMeta() { return m_meta; }
|
||||
inline SimpleMetadata &getMeta() { return m_meta; }
|
||||
|
||||
private:
|
||||
std::string getPropertyPacket();
|
||||
|
@ -218,7 +218,7 @@ private:
|
|||
f32 m_fov = 0.0f;
|
||||
s16 m_wanted_range = 0.0f;
|
||||
|
||||
Metadata m_meta;
|
||||
SimpleMetadata m_meta;
|
||||
|
||||
public:
|
||||
bool m_physics_override_sent = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue