From 989375f2a27bff9f48fc241f787d4b9b4a9b6853 Mon Sep 17 00:00:00 2001 From: provsalt Date: Sun, 30 Jan 2022 17:45:34 +0800 Subject: [PATCH] Refactor entityruntimeid --- src/LightningListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LightningListener.php b/src/LightningListener.php index 2867693..34f2136 100644 --- a/src/LightningListener.php +++ b/src/LightningListener.php @@ -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();