mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
Fix some type errors on custom ExplodePacket use (#1297)
This commit is contained in:
parent
4a3f01703e
commit
bedfca8698
@ -62,7 +62,7 @@ class ExplodePacket extends DataPacket{
|
|||||||
$this->putUnsignedVarInt(count($this->records));
|
$this->putUnsignedVarInt(count($this->records));
|
||||||
if(count($this->records) > 0){
|
if(count($this->records) > 0){
|
||||||
foreach($this->records as $record){
|
foreach($this->records as $record){
|
||||||
$this->putSignedBlockPosition($record->x, $record->y, $record->z);
|
$this->putSignedBlockPosition((int) $record->x, (int) $record->y, (int) $record->z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -71,4 +71,4 @@ class ExplodePacket extends DataPacket{
|
|||||||
return $session->handleExplode($this);
|
return $session->handleExplode($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user