Created
June 1, 2013 16:01
-
-
Save kahrl/5690845 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server.cpp b/src/server.cpp | |
index 4268bb8..3af39f0 100644 | |
--- a/src/server.cpp | |
+++ b/src/server.cpp | |
@@ -802,6 +802,14 @@ void PlayerInfo::PrintLine(std::ostream *s) | |
// Apply item aliases in the node definition manager | |
m_nodedef->updateAliases(m_itemdef); | |
+ std::set<content_t> barney; | |
+ m_nodedef->getIds("group:flora", barney); | |
+ for(std::set<content_t>::iterator it = barney.begin(); | |
+ it != barney.end(); ++it) | |
+ { | |
+ dstream<<"[BARNEY] "<<(*it)<<" "<<m_nodedef->get(*it).name<<std::endl; | |
+ } | |
+ | |
// Initialize Environment | |
ServerMap *servermap = new ServerMap(path_world, this, m_emerge); | |
m_env = new ServerEnvironment(servermap, m_script, this, this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment