This commit is contained in:
yefengeeeeeeeeeee 2026-08-24 17:54:49 +08:00
parent 167498fa06
commit fad0ce038a

View file

@ -881,7 +881,7 @@ class Player{
}
if($player instanceof Player){
if($player === $this){
if($this->PROTOCOL < ProtocolInfo12::CURRENT_PROTOCOL_12 && !($this->armor[0]->getID() & $this->armor[1]->getID() & $this->armor[2]->getID() & $this->armor[3]->getID()) && isset($this->isOre[DIAMOND_HELMET])){
if($this->PROTOCOL < ProtocolInfo12::CURRENT_PROTOCOL_12 && !($this->armor[0]->getID() || $this->armor[1]->getID() || $this->armor[2]->getID() || $this->armor[3]->getID()) && isset($this->isOre[DIAMOND_HELMET])){
for($i = 0 ; $i < 19 ; $i++){
$pk = new HurtArmorPacket();
$pk->health = 127;