Fixed ChunkData, faster, action queue, NACK

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-14 14:27:15 +01:00
parent a7ec472ef4
commit 22ef626c4f
4 changed files with 55 additions and 15 deletions

View File

@ -165,7 +165,7 @@ class ConsoleAPI{
break;
case "block":
foreach($this->server->clients as $client){
$b = $this->server->map->getBlock($client->entity->position["x"], $client->entity->position["y"] - 2, $client->entity->position["z"]);
$b = $this->server->map->getBlock(round($client->entity->position["x"] - 0.5), round($client->entity->position["y"] - 1), round($client->entity->position["z"] - 0.5));
console("[INFO] EID ".$client->eid." is over block ".$b[0].":".$b[1]);
}
break;

View File

@ -60,7 +60,7 @@ class LevelAPI{
for($i = 0;$i < 0xff; ){
$ordered[$i] = str_repeat("\x00", $i);
for($j = 0; $j < $columnsPerPacket; ++$j){
if(($i + $j) >= 0xff){
if(($i + $j) > 0xff){
break;
}
$ordered[$i] .= "\xff";