Auxilor / EcoMobs

Custom mobs plugin for the latest minecraft version
GNU General Public License v3.0
36 stars 35 forks source link

Boss breaking if chunk unloads #33

Closed PrimalPower closed 10 months ago

PrimalPower commented 2 years ago

*Describe the bug If the chunk an eco boss is in is unloaded or the plugin is reloaded the boss completely breaks. It’s timer stops, bossbar stops and effects stop.

To Reproduce Steps to reproduce the behavior:

  1. Create a boss
  2. Leave spawn chunks
  3. Spawn the boss
  4. Teleport far far away and make sure no players within 16 chunks of the boss (assuming simulation distance < 16)
  5. Wait a few minutes and teleport back
  6. The boss breaks Expected behavior The boss should still function as normal

Screenshots If applicable, add screenshots to help explain your problem.

Server Information (please complete the following information):

Alternative fixes Keep chunk loaded if an eco boss is in the chunk

Despawn the boss of chunk unloaded (maybe option in config)

DaRacci commented 2 years ago

Should probably mark this as closed since a PR was merged to fix this

0ft3n commented 2 years ago

@WillFP close, please