Enhance ABM performance a little bit by removing two std::set copy (#5815)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 25 May 2017 14:43:55 +0000 (16:43 +0200)
committerGitHub <noreply@github.com>
Thu, 25 May 2017 14:43:55 +0000 (16:43 +0200)
commit4d5ce8478c959a4ee5b13ef9ba7e46b28d089a21
treed635cf0dfd7b5040c7c24378ac4c25e59cf48f61
parent5b338638e0e5743d8acfb48b72e17b671968722f
Enhance ABM performance a little bit by removing two std::set copy (#5815)

* Enhance ABM performance a little bit by removing two std::set copy

* ActiveBlockModifier::getTriggerContents now returns a const ref
* ActiveBlockModifier::getRequiredNeighbors now returns a const ref
* ActiveBlockModifier::getRequiredNeighbors is now purely virtual

* Little code style fix
src/script/lua_api/l_env.h
src/serverenvironment.cpp
src/serverenvironment.h