mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-31 15:35:21 +01:00 
			
		
		
		
	Add peaceful / not peaceful distinction in mobs and the only_peaceful_mobs setting
This commit is contained in:
		| @@ -97,6 +97,7 @@ public: | ||||
| 	std::string getStaticData(); | ||||
| 	InventoryItem* createPickedUpItem(){return NULL;} | ||||
| 	u16 punch(const std::string &toolname, v3f dir); | ||||
| 	bool isPeaceful(){return false;} | ||||
| private: | ||||
| 	void doDamage(u16 d); | ||||
| 
 | ||||
| @@ -157,6 +158,7 @@ public: | ||||
| 	InventoryItem* createPickedUpItem(){return NULL;} | ||||
| 	u16 punch(const std::string &toolname, v3f dir, | ||||
| 			const std::string &playername); | ||||
| 	bool isPeaceful(); | ||||
| private: | ||||
| 	void sendPosition(); | ||||
| 	void setPropertyDefaults(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user