Skip to content
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

Fix spectator bug #40 #41

Closed
wants to merge 2 commits into from
Closed

Conversation

UnknownNull
Copy link
Contributor

No description provided.

@@ -403,6 +403,10 @@ public function onPickup(EntityItemPickupEvent $event): void {
foreach($entity->getInventory()->addItem($event->getItem()) as $remains) {
$world->dropItem($origin->getLocation(), $remains, new Vector3(0, 0, 0));
}

if ($entity->getGamemode() === GameMode::SPECTATOR){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GameMode uses dynamic registry of functions, please change to GameMode::SPECTATOR()

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be fine, even so i didn't tested out.

@UnknownNull
Copy link
Contributor Author

I am closing this pull because the next update is coming and hopefully this will be fixed in the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants