mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
explosions will add speed to entities + should be faster
This commit is contained in:
parent
f971863f84
commit
168ef84165
3 changed files with 41 additions and 26 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue