mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 21:19:44 +00:00
cs fix
This commit is contained in:
parent
26cafcab00
commit
1e85a65764
52 changed files with 2400 additions and 2406 deletions
|
|
@ -1469,7 +1469,6 @@ class Player{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function directDataPacket(RakNetDataPacket $packet, $reliability = 0, $recover = true){
|
public function directDataPacket(RakNetDataPacket $packet, $reliability = 0, $recover = true){
|
||||||
if($this->connected === false){
|
if($this->connected === false){
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -1622,7 +1621,6 @@ class Player{
|
||||||
|
|
||||||
$this->server->api->player->saveOffline($this->data);
|
$this->server->api->player->saveOffline($this->data);
|
||||||
|
|
||||||
|
|
||||||
$pk = new LoginStatusPacket;
|
$pk = new LoginStatusPacket;
|
||||||
$pk->status = 0;
|
$pk->status = 0;
|
||||||
$this->dataPacket($pk);
|
$this->dataPacket($pk);
|
||||||
|
|
@ -1694,7 +1692,6 @@ class Player{
|
||||||
$pk->started = !$this->level->isTimeStopped();
|
$pk->started = !$this->level->isTimeStopped();
|
||||||
$this->dataPacket($pk);
|
$this->dataPacket($pk);
|
||||||
|
|
||||||
|
|
||||||
console("[INFO] " . FORMAT_AQUA . $this->username . FORMAT_RESET . "[/" . $this->ip . ":" . $this->port . "] logged in with entity id " . $this->eid . " at (" . $this->entity->level->getName() . ", " . round($this->entity->x, 2) . ", " . round($this->entity->y, 2) . ", " . round($this->entity->z, 2) . ")");
|
console("[INFO] " . FORMAT_AQUA . $this->username . FORMAT_RESET . "[/" . $this->ip . ":" . $this->port . "] logged in with entity id " . $this->eid . " at (" . $this->entity->level->getName() . ", " . round($this->entity->x, 2) . ", " . round($this->entity->y, 2) . ", " . round($this->entity->z, 2) . ")");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -1834,7 +1831,6 @@ class Player{
|
||||||
|
|
||||||
$this->server->api->player->saveOffline($this->data);
|
$this->server->api->player->saveOffline($this->data);
|
||||||
|
|
||||||
|
|
||||||
$pk = new LoginStatusPacket;
|
$pk = new LoginStatusPacket;
|
||||||
$pk->status = 0;
|
$pk->status = 0;
|
||||||
$this->dataPacket($pk);
|
$this->dataPacket($pk);
|
||||||
|
|
@ -1906,7 +1902,6 @@ class Player{
|
||||||
$pk->started = !$this->level->isTimeStopped();
|
$pk->started = !$this->level->isTimeStopped();
|
||||||
$this->dataPacket($pk);
|
$this->dataPacket($pk);
|
||||||
|
|
||||||
|
|
||||||
console("[INFO] " . FORMAT_AQUA . $this->username . FORMAT_RESET . "[/" . $this->ip . ":" . $this->port . "] logged in with entity id " . $this->eid . " at (" . $this->entity->level->getName() . ", " . round($this->entity->x, 2) . ", " . round($this->entity->y, 2) . ", " . round($this->entity->z, 2) . ")");
|
console("[INFO] " . FORMAT_AQUA . $this->username . FORMAT_RESET . "[/" . $this->ip . ":" . $this->port . "] logged in with entity id " . $this->eid . " at (" . $this->entity->level->getName() . ", " . round($this->entity->x, 2) . ", " . round($this->entity->y, 2) . ", " . round($this->entity->z, 2) . ")");
|
||||||
break;
|
break;
|
||||||
case ProtocolInfo::READY_PACKET:
|
case ProtocolInfo::READY_PACKET:
|
||||||
|
|
@ -2011,7 +2006,6 @@ class Player{
|
||||||
$packet->slot -= 9;
|
$packet->slot -= 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (($this->gamemode & 0x01) === SURVIVAL) {
|
if (($this->gamemode & 0x01) === SURVIVAL) {
|
||||||
$data["item"] = $this->getSlot($packet->slot);
|
$data["item"] = $this->getSlot($packet->slot);
|
||||||
if (!($data["item"] instanceof Item)) {
|
if (!($data["item"] instanceof Item)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue