diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-15 02:03:28 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:43 +0200 |
commit | 9e1c4533b8a67ee8c90f4aa70f6974b25b55640d (patch) | |
tree | 6de7e5464f3eeb37415c61fb244f1b1fcba96a98 /src/server.cpp | |
parent | 4b8e4dae589cabef054991c08eb2cd47c867994a (diff) | |
download | minetest-9e1c4533b8a67ee8c90f4aa70f6974b25b55640d.tar.gz minetest-9e1c4533b8a67ee8c90f4aa70f6974b25b55640d.tar.bz2 minetest-9e1c4533b8a67ee8c90f4aa70f6974b25b55640d.zip |
Move tool definitions to script
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/server.cpp b/src/server.cpp index ca00ed29d..ee5e301f1 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -43,7 +43,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "scriptapi.h" #include "nodedef.h" #include "tooldef.h" -#include "content_tool.h" // For content_tool_init #define PP(x) "("<<(x).X<<","<<(x).Y<<","<<(x).Z<<")" @@ -987,9 +986,6 @@ Server::Server( infostream<<"m_nodemgr="<<m_nodemgr<<std::endl; - // Initialize default tool definitions - content_tool_init(m_toolmgr); - // Initialize default node definitions content_mapnode_init(NULL, m_nodemgr); @@ -4240,6 +4236,15 @@ ITextureSource* Server::getTextureSource() return NULL; } +IWritableToolDefManager* Server::getWritableToolDefManager() +{ + return m_toolmgr; +} +IWritableNodeDefManager* Server::getWritableNodeDefManager() +{ + return m_nodemgr; +} + v3f findSpawnPos(ServerMap &map) { //return v3f(50,50,50)*BS; |