Skip to content

updated protocol, add some new pets, fix level points bug, add custom pet #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
Update EventListener.php
  • Loading branch information
edwinyoo44 committed Jul 3, 2021
commit f9672a12db7d4e1f7e06ec9a8d1c622f1c7a8b71
2 changes: 1 addition & 1 deletion src/BlockHorizons/BlockPets/listeners/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function(array $petData) use($player, $loader): void {
(bool) $data["Visible"],
$data["Inventory"]
);
if(!is_null($pet)){
if($pet !== null){
$pet->spawnToAll();
$pet->setDormant(false);
if($hard_reset) {
Expand Down