explosions will add speed to entities + should be faster

This commit is contained in:
GameHerobrine 2024-03-16 15:58:32 +03:00
parent f971863f84
commit 168ef84165
3 changed files with 41 additions and 26 deletions

View file

@ -24,9 +24,15 @@ class ExplodePacket extends RakNetDataPacket{
$this->putInt(@count($this->records));
if(@count($this->records) > 0){
foreach($this->records as $record){
$this->putByte($record->x);
$this->putByte($record->y);
$this->putByte($record->z);
if($record instanceof Vector3){
$this->putByte($record->x);
$this->putByte($record->y);
$this->putByte($record->z);
}else{
$this->putByte($record >> 16);
$this->putByte($record & 0xff);
$this->putByte($record >> 8 & 0xff);
}
}
}
}