Merge pull request #161 from pmmp/deprecate-version-constants

Deprecate Minecraft game version constants in the `pocketmine` root namespace
This commit is contained in:
SOFe
2016-12-19 21:21:38 +08:00
committed by GitHub
4 changed files with 16 additions and 4 deletions

View File

@@ -87,6 +87,7 @@ use pocketmine\network\Network;
use pocketmine\network\protocol\BatchPacket;
use pocketmine\network\protocol\CraftingDataPacket;
use pocketmine\network\protocol\DataPacket;
use pocketmine\network\protocol\Info as ProtocolInfo;
use pocketmine\network\protocol\PlayerListPacket;
use pocketmine\network\query\QueryHandler;
use pocketmine\network\RakLibInterface;
@@ -301,7 +302,7 @@ class Server{
* @return string
*/
public function getVersion(){
return \pocketmine\MINECRAFT_VERSION;
return ProtocolInfo::MINECRAFT_VERSION;
}
/**