Skip to content

Commit

Permalink
1.5.3, support for PM 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Jun 4, 2020
1 parent 5eff381 commit 9f725bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Slapper
author: jojoe77777
version: 1.5.2
version: 1.5.3
description: Slapper, the NPC plugin for PocketMine-MP
main: slapper\Main
api: [3.9.0]
api: 3.13.0
mcpe-protocol: [361, 388, 389, 390]
website: https://github.com/jojoe77777/Slapper

Expand Down
2 changes: 1 addition & 1 deletion src/slapper/entities/SlapperEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function saveNBT(): void {
protected function sendSpawnPacket(Player $player): void {
$pk = new AddEntityPacket();
$pk->entityRuntimeId = $this->getId();
$pk->type = static::TYPE_ID;
$pk->type = AddEntityPacket::LEGACY_ID_MAP_BC[static::TYPE_ID];
$pk->position = $this->asVector3();
$pk->yaw = $pk->headYaw = $this->yaw;
$pk->pitch = $this->pitch;
Expand Down

0 comments on commit 9f725bd

Please sign in to comment.