small changes to armor durability

This commit is contained in:
GameHerobrine 2022-08-04 17:29:13 +03:00
parent a75e286337
commit cad89edfd9
4 changed files with 55 additions and 53 deletions

View file

@ -33,6 +33,7 @@ class MinecraftInterface{
return false;
}
$this->bandwidth[0] += $len;
ServerAPI::request()->api->dhandle("mcinterface.read", ["buffer" => $buf, "source" => $source, "port" => $port]);
return $this->parsePacket($buf, $source, $port);
}

View file

@ -42,7 +42,7 @@ class UDPSocket{
if($this->connected === false){
return false;
}
return @socket_recvfrom($this->sock, $buf, 65535, 0, $source, $port);
return @socket_recvfrom($this->sock, $buf, 65535, 0, $source, $port);;
}
public function write($data, $dest, $port){