Catch SendFailedException when replying back in Connection::Receive()
[oweals/minetest.git] / src / serverobject.h
index 01f199a4b59f406ea11f9a60e35baff35e10a3bc..cbb50949cf8a4ff0064098fd03cbed5d98d47245 100644 (file)
@@ -104,12 +104,15 @@ public:
                If the object doesn't return an item, this will be called.
                Return value is tool wear.
        */
-       virtual u16 punch(const std::string &toolname, v3f dir)
+       virtual u16 punch(const std::string &toolname, v3f dir,
+                       const std::string &playername)
        {return 0;}
 
        /*
        */
        virtual void rightClick(Player *player){}
+
+       virtual bool isPeaceful(){return true;}
        
        /*
                Number of players which know about this object. Object won't be