Paper icon indicating copy to clipboard operation
Paper copied to clipboard

1.17 not loading saved Entities preventing any new spawning

Open AwesomeDude091 opened this issue 5 years ago • 12 comments

Expected behavior

I expect the world to spawn 1.16.5 entities and it to not block new mob spawning

Observed/Actual behavior

Well there were no old entities spawned and no new ones either

Steps/models to reproduce

Load a 1.16.5 world into a 1.17 server

Plugin list

Multiverse-Core, NashhornPlus, HolographicDisplays, PlotSquared, FastAsyncWorldEdit, CreativeManagement (Custom), Viral-SQL-API (Custom), ProtocolLib, LuckPerms-Bukkit, DiscordSRV, BungeeGuard, Alice, ChatControlRed, BungeeTabListPlus Bukkit Bridge, Multiverse-Portals, Vault

Paper version

[Server thread/INFO]: This server is running Paper version git-Paper-63 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT) (Git: 1d194e5)

Agreements

  • [X] I am running the latest version of Paper available from https://papermc.io/downloads.
  • [X] I have searched for and ensured there isn't already an open issue regarding this.
  • [X] My version of Minecraft is supported by Paper.

Other

All of the custom plugins are not responsible and the other plugins are running on the latest 1.17 dev builds

AwesomeDude091 avatar Jun 29 '21 17:06 AwesomeDude091

I have no evidence to suggest this, but I think it could be Multiverse Core Plugin as the second server I did this to had similar issues, however a third without Multiverse did not show some Mapping errors or something like that. However that server did not have any entities saved, so I couldn't test :(

AwesomeDude091 avatar Jun 29 '21 18:06 AwesomeDude091

Hi, I can confirm this issue on my server without any plugins. I tried describing on the discord but mobs are not despawning when you unload chunks or go far away so new ones are not arriving. Hope it helps.

ghost avatar Jul 01 '21 07:07 ghost

STEPS TO REPRODUCE:

  1. Spawn enderman in nether
  2. Go far away 1 minute
  3. Come back -> Mobs are not new generated but the same are at the same place.

PLEASE NOTE : if spectator watches -> everything works fine

ISSUE : BLOCKS SPAWN RATE, farms are dead with mobcap as player spawner mobs per player!!

ghost avatar Jul 01 '21 18:07 ghost

I think we are experiencing slightly difference issues, with the same origin. Origin being: Saved Entities not loading.

AwesomeDude091 avatar Jul 01 '21 19:07 AwesomeDude091

I have an issue that might be similar. I am using getNearbyEntities() in my plugin and it will return 0 at the location of my armorstands. If I destroy the armorstands, I cannot place any blocks at that location. Although if I /reload the server for some reason the entities are found and return correctly. It's like the entities aren't registered on start although they are registered on /reload.

SnickoDeadMC avatar Jul 02 '21 08:07 SnickoDeadMC

Maybe it’s another side effect with the same origin: saved entities not loading on automatic loads (Chunk Loads, World Load) however they load manually (/reload). Seems like either a) somebody forgot to call the method or b) the method is failing during natural processes. Either way this should be fixed!

AwesomeDude091 avatar Jul 02 '21 08:07 AwesomeDude091

Just did a test and I can't get any entities (even spawned after we updated to 1.17) with Chunk getEntities() on server start. But if I use /server reload it will find them like normal. Hope this helps

SnickoDeadMC avatar Jul 02 '21 08:07 SnickoDeadMC

Maybe it’s another side effect with the same origin: saved entities not loading on automatic loads (Chunk Loads, World Load) however they load manually (/reload). Seems like either a) somebody forgot to call the method or b) the method is failing during natural processes. Either way this should be fixed!

Just did a test and I can't get any entities (even spawned after we updated to 1.17) with Chunk getEntities() on server start. But if I use /server reload it will find them like normal. Hope this helps

What you are describing sounds like https://github.com/PaperMC/Paper/issues/5872, which is due to behavioral changes by Mojang (chunk and entity storage is now separate).

jpenilla avatar Jul 02 '21 09:07 jpenilla

If it is that how do we fix it???

AwesomeDude091 avatar Jul 02 '21 10:07 AwesomeDude091

Just checked issue persists on Paper-1.17-69.jar

AwesomeDude091 avatar Jul 02 '21 14:07 AwesomeDude091

Issue persists on Paper-1.17-72.jar

AwesomeDude091 avatar Jul 04 '21 16:07 AwesomeDude091

Issue is resolved in Paper-1.17-75.jar with latest Multiverse Development Builds

AwesomeDude091 avatar Jul 04 '21 21:07 AwesomeDude091