Added experimental LevelDB support, fixed a few issues with NBT, spawning and Binary R/W

This commit is contained in:
Shoghi Cervantes
2014-12-19 00:28:50 +01:00
parent db2dfc47a6
commit a605e90dfc
11 changed files with 705 additions and 19 deletions

View File

@ -385,8 +385,8 @@ class Binary{
public static function readLong($x){
if(PHP_INT_SIZE === 8){
list(, $int1, $int2) = unpack("N*", $x);
return ($int1 << 32) | $int2;
$int = unpack("N*", $x);
return ($int[1] << 32) | $int[2];
}else{
$value = "0";
for($i = 0; $i < 8; $i += 2){