Skip to content

Commit

Permalink
Refactor entityruntimeid
Browse files Browse the repository at this point in the history
  • Loading branch information
provsalt committed Jan 30, 2022
1 parent ea456c1 commit 989375f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LightningListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function Lightning(Player $player) :void{
$pos = $player->getPosition();
$light = new AddActorPacket();
$light->type = "minecraft:lightning_bolt";
$light->entityRuntimeId = 1;
$light->actorRuntimeId = 1;
$light->metadata = [];
$light->motion = null;
$light->yaw = $player->getLocation()->getYaw();
Expand Down

0 comments on commit 989375f

Please sign in to comment.