mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added structure version
This commit is contained in:
parent
5096cdcde8
commit
1e8b012a6e
2 changed files with 4 additions and 3 deletions
|
|
@ -535,10 +535,10 @@ class PocketMinecraftServer{
|
|||
}
|
||||
$version = $data[1];
|
||||
$size = strlen($data[2]);
|
||||
if($version !== 5){
|
||||
console("[DEBUG] Incorrect protocol #$version from ".$packet["ip"].":".$packet["port"], true, true, 2);
|
||||
if($version !== CURRENT_STRUCTURE){
|
||||
console("[DEBUG] Incorrect structure #$version from ".$packet["ip"].":".$packet["port"], true, true, 2);
|
||||
$this->send(0x1a, array(
|
||||
CURRENT_PROTOCOL,
|
||||
CURRENT_STRUCTURE,
|
||||
MAGIC,
|
||||
$this->serverID,
|
||||
), false, $packet["ip"], $packet["port"]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue