Send Position packet on event, don't check it at each AsyncRunStep.
[oweals/minetest.git] / src / serverobject.h
index 8e80225e4f8b7f60a937588abef358c90a13dd93..878c37773e0fff64a7d025b8dee3a5af13a55898 100644 (file)
@@ -58,7 +58,7 @@ public:
        ServerActiveObject(ServerEnvironment *env, v3f pos);
        virtual ~ServerActiveObject();
 
-       virtual u8 getSendType() const
+       virtual ActiveObjectType getSendType() const
        { return getType(); }
 
        // Called after id has been set and has been inserted in environment
@@ -71,7 +71,7 @@ public:
        { return true; }
        
        // Create a certain type of ServerActiveObject
-       static ServerActiveObject* create(u8 type,
+       static ServerActiveObject* create(ActiveObjectType type,
                        ServerEnvironment *env, u16 id, v3f pos,
                        const std::string &data);