summaryrefslogtreecommitdiff
path: root/src/content_sao.h
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2019-11-28 12:30:21 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2019-11-28 12:30:21 +0100
commitddab98412f3fc47eedfa74f8a4edafd324e59707 (patch)
tree7087657e4b9d90e2e0559bfdc25cf2b3b52e51fe /src/content_sao.h
parent6dc7177a5de51f1329c1be04e7f07be64d5cc76c (diff)
downloadminetest-lifo-fixes.tar.gz
minetest-lifo-fixes.tar.bz2
minetest-lifo-fixes.zip
Add static_save and prevent UDP connect exhaustionslifo-fixes
This merges two pull requests from 5.0
Diffstat (limited to 'src/content_sao.h')
-rw-r--r--src/content_sao.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content_sao.h b/src/content_sao.h
index 0dad54805..9444ee758 100644
--- a/src/content_sao.h
+++ b/src/content_sao.h
@@ -102,6 +102,8 @@ public:
const std::string &data);
void step(float dtime, bool send_recommended);
std::string getClientInitializationData(u16 protocol_version);
+ bool isStaticAllowed() const
+ { return m_prop.static_save; }
void getStaticData(std::string *result) const;
int punch(v3f dir,
const ToolCapabilities *toolcap=NULL,