prevent useitem if heldItem on client doesnt match server

This commit is contained in:
GameHerobrine 2025-05-09 14:36:33 +03:00
parent 16324d32f2
commit 38ee5daed2
2 changed files with 18 additions and 3 deletions

View file

@ -25,18 +25,18 @@ class UseItemPacket extends RakNetDataPacket{
$this->z = $this->getInt();
$this->face = $this->getInt();
$this->item = $this->getShort();
$this->meta = $this->getByte(); //Mojang: fix this
$this->meta = $this->getByte();
$this->eid = $this->getInt();
$this->fx = $this->getFloat();
$this->fy = $this->getFloat();
$this->fz = $this->getFloat();
$this->posX = $this->getFloat();
$this->posY = $this->getFloat();
$this->posZ = $this->getFloat();
$this->posZ = $this->getFloat();
}
public function encode(){
}
}
}