refactor an if block to std::min
refactor an if block to std::min

Schwertspize/cuberite,zackp30/cuberite,tonibm19/cuberite,guijun/MCServer,nevercast/cuberite,ionux/MCServer,thetaeo/cuberite,zackp30/cuberite,Altenius/cuberite,bendl/cuberite,jammet/MCServer,guijun/MCServer,Altenius/cuberite,Frownigami1/cuberite,Fighter19/cuberite,nounoursheureux/MCServer,marvinkopf/cuberite,zackp30/cuberite,birkett/cuberite,mjssw/cuberite,tonibm19/cuberite,SamOatesPlugins/cuberite,nevercast/cuberite,mc-server/MCServer,nevercast/cuberite,mjssw/cuberite,thetaeo/cuberite,mjssw/cuberite,mmdk95/cuberite,ionux/MCServer,bendl/cuberite,tonibm19/cuberite,nicodinh/cuberite,electromatter/cuberite,Schwertspize/cuberite,mmdk95/cuberite,Fighter19/cuberite,Howaner/MCServer,jammet/MCServer,mc-server/MCServer,mmdk95/cuberite,Tri125/MCServer,electromatter/cuberite,johnsoch/cuberite,birkett/MCServer,mmdk95/cuberite,mjssw/cuberite,jammet/MCServer,tonibm19/cuberite,ionux/MCServer,nounoursheureux/MCServer,mc-server/MCServer,Schwertspize/cuberite,marvinkopf/cuberite,nichwall/cuberite,bendl/cuberite,birkett/cuberite,Frownigami1/cuberite,ionux/MCServer,Altenius/cuberite,linnemannr/MCServer,johnsoch/cuberite,ionux/MCServer,nichwall/cuberite,birkett/cuberite,QUSpilPrgm/cuberite,Haxi52/cuberite,Haxi52/cuberite,linnemannr/MCServer,mmdk95/cuberite,marvinkopf/cuberite,nevercast/cuberite,SamOatesPlugins/cuberite,electromatter/cuberite,zackp30/cuberite,Schwertspize/cuberite,nevercast/cuberite,nichwall/cuberite,jammet/MCServer,Haxi52/cuberite,marvinkopf/cuberite,johnsoch/cuberite,kevinr/cuberite,Altenius/cuberite,Tri125/MCServer,thetaeo/cuberite,birkett/cuberite,thetaeo/cuberite,birkett/MCServer,HelenaKitty/EbooMC,mjssw/cuberite,Tri125/MCServer,birkett/cuberite,linnemannr/MCServer,Tri125/MCServer,mjssw/cuberite,Howaner/MCServer,QUSpilPrgm/cuberite,johnsoch/cuberite,HelenaKitty/EbooMC,Frownigami1/cuberite,zackp30/cuberite,kevinr/cuberite,ionux/MCServer,electromatter/cuberite,HelenaKitty/EbooMC,linnemannr/MCServer,guijun/MCServer,Haxi52/cuberite,johnsoch/cuberite,marvinkopf/cuberite,electromatter/cuberite,kevinr/cuberite,Schwertspize/cuberite,nichwall/cuberite,Altenius/cuberite,jammet/MCServer,guijun/MCServer,kevinr/cuberite,Frownigami1/cuberite,bendl/cuberite,Howaner/MCServer,SamOatesPlugins/cuberite,jammet/MCServer,mmdk95/cuberite,thetaeo/cuberite,nevercast/cuberite,Frownigami1/cuberite,birkett/MCServer,Tri125/MCServer,QUSpilPrgm/cuberite,nounoursheureux/MCServer,Howaner/MCServer,HelenaKitty/EbooMC,QUSpilPrgm/cuberite,QUSpilPrgm/cuberite,Howaner/MCServer,Howaner/MCServer,QUSpilPrgm/cuberite,mc-server/MCServer,HelenaKitty/EbooMC,tonibm19/cuberite,nicodinh/cuberite,kevinr/cuberite,marvinkopf/cuberite,nounoursheureux/MCServer,nicodinh/cuberite,nounoursheureux/MCServer,birkett/MCServer,nichwall/cuberite,mc-server/MCServer,mc-server/MCServer,linnemannr/MCServer,nounoursheureux/MCServer,tonibm19/cuberite,birkett/MCServer,nicodinh/cuberite,nicodinh/cuberite,SamOatesPlugins/cuberite,Fighter19/cuberite,Fighter19/cuberite,guijun/MCServer,SamOatesPlugins/cuberite,linnemannr/MCServer,electromatter/cuberite,kevinr/cuberite,Tri125/MCServer,Fighter19/cuberite,guijun/MCServer,Haxi52/cuberite,Haxi52/cuberite,thetaeo/cuberite,birkett/MCServer,bendl/cuberite,zackp30/cuberite,nicodinh/cuberite,nichwall/cuberite,birkett/cuberite,Fighter19/cuberite