From abceeee92f99b84ebb79968269835a4f509bfb90 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 14 Nov 2011 00:19:48 +0200 Subject: Create framework for getting rid of global definitions of node/tool/item/whatever types --- src/serverobject.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/serverobject.h') diff --git a/src/serverobject.h b/src/serverobject.h index 7e767188a..26dce007f 100644 --- a/src/serverobject.h +++ b/src/serverobject.h @@ -54,7 +54,8 @@ public: ServerActiveObject(ServerEnvironment *env, v3f pos); virtual ~ServerActiveObject(); - virtual void addedToEnvironment(u16 id); + // Call after id has been set and has been inserted in environment + virtual void addedToEnvironment(); // Create a certain type of ServerActiveObject static ServerActiveObject* create(u8 type, -- cgit v1.2.3