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

Mob spawning / block placing issue #132

Closed
Faelris opened this issue Nov 4, 2020 · 2 comments
Closed

Mob spawning / block placing issue #132

Faelris opened this issue Nov 4, 2020 · 2 comments
Assignees

Comments

@Faelris
Copy link

Faelris commented Nov 4, 2020

Environment

  • Sponge Version:
    spongeforge-1.12.2-2838-7.3.0
  • Plugin Version:
    EagleFactions-1.12.2-v0.15.3

What happens?

It appears rarely, but I checked all the other possibilities (and plugins w/ configurations also). I wiped my first server map with such problem, but it also appeared on the second and the third one.
When I set the (spawn-hostile-mobs-in-factions-territory=) to false, it also prevents some mobs to spawn (horses, squids, dogs for example), and also the main issue - you can't place blocks where "the invisible mobs" spawn. I mean, mobs appear to spawn, but turn invisible, preventing placing blocks on the spot where they spawned.
At first, I thought that it was a sponge issue (maybe it still is), but when I changed this setting (spawn-hostile-mobs-in-factions-territory=) to true and restarted the server, all "invisible mobs" appear visible, died, and I was actually able to place blocks there.
Also, no info on this appeared on the console.
MCedit helped with this issue also, but the problem appeared again, sometimes in the same chunks.

Expected result

Mob spawning prevention should work as intended.
Maybe a custom configuration for each faction for mob spawning prevention might work, or custom configuration for each type of mob (or even both).
"/f flag"-like configuration system?

@Aquerr
Copy link
Owner

Aquerr commented Nov 4, 2020

Thanks for your report. I will look at this asap. Also, your suggestion for a new flag is nice.

@Aquerr Aquerr self-assigned this Nov 4, 2020
@Aquerr
Copy link
Owner

Aquerr commented Nov 4, 2020

I was looking at the code and it looks like that:

  1. Eagle Factions listens for EntitySpawnEvent.
  2. If the entity is hostile then we are prefroming some operations. Horses do not count as Hostile.
  3. If we detect that mob should not be spawned, either due to configuration or protected territory then we are cancelling the spawn event which should result in mob being not spawned.

So it is hard to tell for me why are your mobs invisible.

@Aquerr Aquerr closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants