Updated to allow multiple protocol versions

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-06 17:05:05 +01:00
parent 8b1c010b4d
commit 7732d6b6f7
9 changed files with 124 additions and 49 deletions

View File

@ -33,6 +33,7 @@ class MinecraftInterface{
$this->protocol = (int) $protocol;
require("pstruct/RakNet.php");
require("pstruct/packetName.php");
require("pstruct/".$this->protocol.".php");
require("pstruct/dataName.php");
$this->pstruct = $pstruct;
$this->name = $packetName;