aboutsummaryrefslogtreecommitdiff
path: root/src/serverenvironment.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/serverenvironment.h')
-rw-r--r--src/serverenvironment.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/serverenvironment.h b/src/serverenvironment.h
index 36f3e2067..9d84d7a48 100644
--- a/src/serverenvironment.h
+++ b/src/serverenvironment.h
@@ -49,8 +49,8 @@ class ServerScripting;
class ActiveBlockModifier
{
public:
- ActiveBlockModifier(){};
- virtual ~ActiveBlockModifier(){};
+ ActiveBlockModifier() = default;
+ virtual ~ActiveBlockModifier() = default;
// Set of contents to trigger on
virtual const std::set<std::string> &getTriggerContents() const = 0;
@@ -84,7 +84,8 @@ struct LoadingBlockModifierDef
std::string name;
bool run_at_every_load = false;
- virtual ~LoadingBlockModifierDef() {}
+ virtual ~LoadingBlockModifierDef() = default;
+
virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n){};
};
@@ -106,7 +107,7 @@ struct LBMContentMapping
class LBMManager
{
public:
- LBMManager() {}
+ LBMManager() = default;
~LBMManager();
// Don't call this after loadIntroductionTimes() ran.