Some tweaks GetPyramidLevel returns 0 when no layers were found, 1 for one layer etc. Auto adjust the minY and/or maxY to 0 if the beacon is low.
Some tweaks
GetPyramidLevel returns 0 when no layers were found, 1 for one layer etc.
Auto adjust the minY and/or maxY to 0 if the beacon is low.

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