mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-28 16:17:01 +00:00
Stop silently blocking people
This commit is contained in:
parent
36c95660e6
commit
77b1b565a4
@ -136,11 +136,9 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
|
||||
$this->players[$identifier]->handleDataPacket($pk);
|
||||
}
|
||||
}catch(\Throwable $e){
|
||||
if(\pocketmine\DEBUG > 1 and isset($pk)){
|
||||
$logger = $this->server->getLogger();
|
||||
$logger->debug("Packet " . get_class($pk) . " 0x" . bin2hex($packet->buffer));
|
||||
$logger->debug("Packet " . (isset($pk) ? get_class($pk) : "unknown") . " 0x" . bin2hex($packet->buffer));
|
||||
$logger->logException($e);
|
||||
}
|
||||
|
||||
if(isset($this->players[$identifier])){
|
||||
$this->interface->blockAddress($this->players[$identifier]->getAddress(), 5);
|
||||
|
Loading…
x
Reference in New Issue
Block a user