diff options
Diffstat (limited to 'src/serverobject.cpp')
-rw-r--r-- | src/serverobject.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/serverobject.cpp b/src/serverobject.cpp index a648db7da..deaa94f2c 100644 --- a/src/serverobject.cpp +++ b/src/serverobject.cpp @@ -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 "constants.h" // BS ServerActiveObject::ServerActiveObject(ServerEnvironment *env, v3f pos): ActiveObject(0), @@ -66,6 +67,11 @@ void ServerActiveObject::registerType(u16 type, Factory f) m_types.insert(type, f); } +float ServerActiveObject::getMinimumSavedMovement() +{ + return 2.0*BS; +} + ItemStack ServerActiveObject::getWieldedItem() const { const Inventory *inv = getInventory(); |