Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created June 1, 2013 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/5690845 to your computer and use it in GitHub Desktop.
Save kahrl/5690845 to your computer and use it in GitHub Desktop.
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