mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
some tweaks
This commit is contained in:
parent
9a9d67d607
commit
2acc93648e
1 changed files with 8 additions and 1 deletions
|
|
@ -1284,7 +1284,7 @@ class Player{
|
||||||
|
|
||||||
$this->server->handle("player.invisible", $data);
|
$this->server->handle("player.invisible", $data);
|
||||||
$b = $data["status"];
|
$b = $data["status"];
|
||||||
|
if(!($this->entity instanceof Entity)) $send = false;
|
||||||
if($b){
|
if($b){
|
||||||
$this->invisibleFor[$player->CID] = $b;
|
$this->invisibleFor[$player->CID] = $b;
|
||||||
if($send){
|
if($send){
|
||||||
|
|
@ -1710,8 +1710,15 @@ class Player{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function convertToGlobalEIDPacket(RakNetDataPacket $pk){
|
public function convertToGlobalEIDPacket(RakNetDataPacket $pk){
|
||||||
|
if($pk->pid() == ProtocolInfo::INTERACT_PACKET){
|
||||||
|
$eid = $pk->eid;
|
||||||
|
$target = $pk->target;
|
||||||
|
}
|
||||||
if(!$pk->eidsToGlobal($this)){
|
if(!$pk->eidsToGlobal($this)){
|
||||||
ConsoleAPI::warn("Failed to convert eids to global in {$pk->pid()}! (Player: {$this->ip}:{$this->port}). Stacktrace: ");
|
ConsoleAPI::warn("Failed to convert eids to global in {$pk->pid()}! (Player: {$this->ip}:{$this->port}). Stacktrace: ");
|
||||||
|
if($pk->pid() == ProtocolInfo::INTERACT_PACKET){
|
||||||
|
ConsoleAPI::warn("EID: $eid Target: $target");
|
||||||
|
}
|
||||||
foreach(explode("\n", (new Exception())->getTraceAsString()) as $s) ConsoleAPI::warn($s);
|
foreach(explode("\n", (new Exception())->getTraceAsString()) as $s) ConsoleAPI::warn($s);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue