Catch SendFailedException when replying back in Connection::Receive()
[oweals/minetest.git] / src / clientobject.h
index 6a12c718b2661ce31230f3e6ae21aea914f1d904..60d293ff41049ff2f2aed0e5c34683609c4fff14 100644 (file)
@@ -60,7 +60,7 @@ public:
        virtual void processMessage(const std::string &data){}
 
        virtual std::string infoText() {return "";}
-
+       
        /*
                This takes the return value of
                ServerActiveObject::getClientInitializationData
@@ -70,6 +70,10 @@ public:
        // Create a certain type of ClientActiveObject
        static ClientActiveObject* create(u8 type);
 
+       // If returns true, punch will not be sent to the server
+       virtual bool directReportPunch(const std::string &toolname, v3f dir)
+       { return false; }
+
 protected:
        // Used for creating objects based on type
        typedef ClientActiveObject* (*Factory)();