Updating version & protocol enforcement

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-30 15:35:33 +01:00
parent 9a8850cb9c
commit a75f8c2737
5 changed files with 29 additions and 21 deletions

View file

@ -541,7 +541,7 @@ class PocketMinecraftServer{
}
$version = $data[1];
$size = strlen($data[2]);
if($version !== CURRENT_PROTOCOL){
if($version !== 5){
console("[DEBUG] Incorrect protocol #$version from ".$packet["ip"].":".$packet["port"], true, true, 2);
$this->send(0x1a, array(
CURRENT_PROTOCOL,