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

Hostile mobs not removed on teleport #818

Closed
tastybento opened this issue Jul 6, 2019 · 0 comments
Closed

Hostile mobs not removed on teleport #818

tastybento opened this issue Jul 6, 2019 · 0 comments
Assignees
Labels
Status: Done This issue has been completed or answered. This pull request has been merged. Type: Bug
Milestone

Comments

@tastybento
Copy link
Member

Description

Describe the bug

Hostile mobs are not always removed on teleporting

Steps to reproduce the behavior

Set the remove hostile mobs flag to true.
Go through a portal to the nether and mobs will not be removed around the player.

Expected behavior

Hostile mobs should be removed when teleporting if the flag is true.

Additional context

This is caused by the destination chunks not being loaded. Therefore, when a scan is done for entities in the area, none are detected because the chunks are unloaded. The fix is to do the scan 1 tick after teleporting and then clear the area.
The reason it works sometimes in the overworld is because the islands can be in an area where the chunks are always loaded, like near spawn.

@tastybento tastybento added this to the 1.6.0 milestone Jul 6, 2019
@tastybento tastybento self-assigned this Jul 6, 2019
@Poslovitch Poslovitch added the Status: Done This issue has been completed or answered. This pull request has been merged. label Jul 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Done This issue has been completed or answered. This pull request has been merged. Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants