]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/serverobject.cpp
Fix key change menu a bit
[dragonfireclient.git] / src / serverobject.cpp
index 2a007bda5a7d8e0795cae4524cba6fbbacd01d6a..ca3d2c3b98d2790de87d64905446a6fb0e273e99 100644 (file)
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "serverobject.h"
 #include <fstream>
 #include "inventory.h"
+#include "tooldef.h"
 
 ServerActiveObject::ServerActiveObject(ServerEnvironment *env, v3f pos):
        ActiveObject(0),
@@ -37,11 +38,6 @@ ServerActiveObject::~ServerActiveObject()
 {
 }
 
-void ServerActiveObject::addedToEnvironment(u16 id)
-{
-       setId(id);
-}
-
 ServerActiveObject* ServerActiveObject::create(u8 type,
                ServerEnvironment *env, u16 id, v3f pos,
                const std::string &data)
@@ -71,5 +67,10 @@ void ServerActiveObject::registerType(u16 type, Factory f)
        m_types.insert(type, f);
 }
 
+void ServerActiveObject::getWieldDiggingProperties(ToolDiggingProperties *dst)
+{
+       *dst = ToolDiggingProperties();
+}
+