mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Fixed wrong types in ParticleCommand
This commit is contained in:
parent
4666560731
commit
eda7965f86
@ -126,10 +126,11 @@ class ParticleCommand extends VanillaCommand{
|
||||
* @param string $name
|
||||
*
|
||||
* @param Vector3 $pos
|
||||
* @param int $xd
|
||||
* @param float $xd
|
||||
* @param float $yd
|
||||
* @param float $zd
|
||||
* @param int|null $data
|
||||
*
|
||||
* @return Particle
|
||||
*/
|
||||
private function getParticle($name, Vector3 $pos, $xd, $yd, $zd, $data){
|
||||
@ -176,12 +177,12 @@ class ParticleCommand extends VanillaCommand{
|
||||
return new ItemBreakParticle($pos, Item::get(Item::SLIMEBALL));
|
||||
case "itembreak":
|
||||
if($data !== null and $data !== 0){
|
||||
return new ItemBreakParticle($pos, $data);
|
||||
return new ItemBreakParticle($pos, Item::get($data));
|
||||
}
|
||||
break;
|
||||
case "terrain":
|
||||
if($data !== null and $data !== 0){
|
||||
return new TerrainParticle($pos, $data);
|
||||
return new TerrainParticle($pos, Block::get($data));
|
||||
}
|
||||
break;
|
||||
case "heart":
|
||||
|
Loading…
x
Reference in New Issue
Block a user