mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Cleaned up isEncoded mess
This commit is contained in:
@ -200,7 +200,6 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
|
||||
$identifier = $this->identifiers[$h];
|
||||
if(!$packet->isEncoded){
|
||||
$packet->encode();
|
||||
$packet->isEncoded = true;
|
||||
}
|
||||
|
||||
if($packet instanceof BatchPacket){
|
||||
|
@ -70,6 +70,7 @@ abstract class DataPacket extends BinaryStream{
|
||||
public function encode(){
|
||||
$this->reset();
|
||||
$this->encodePayload();
|
||||
$this->isEncoded = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user