mojira.dev
MC-73450

When quiting a world, you leave before chucks unload

When you quit a singleplayer world, the game will recognize you as "gone" for a little while before the chunks unload. It's also possible that when entering, the chunks load before the game recognizes you as "there", there is no way to tell the difference. This is very annoying when having command blocks check for players online, they will register no players online when you quit the world. To replicate, just hook up a testfor command to a 20 Hz clock, then quit and re-enter the world. The command will momentarily not find you.

Related issues

Comments

Sonicwave

Probably a duplicate of MC-409.

migrated

It's not a duplicate, but it is probably related.

migrated

idk about that

migrated

How is this possibly intended Mojang? Incorrect information is being sent.

Torabi

This is perfectly logical, considering that singleplayer runs a server internally. When you quit, you leave the world, and then it shuts down the server. Why would you want it to shut down the server first? You'd probably get a message that you were disconnected from the server then.

migrated

I guess I can get behind that explanation. It still seems a little odd. The problem with it is that it can mess with redstone mechanisms. I actually had to redesign some stuff due to this bug.

Torabi

Singleplayer is multiplayer, but with only one person. And it could turn into multiplayer at any time, using "Open to LAN". Design for multiplayer, and it should work in both.

migrated

Erik Broes

Unconfirmed

Minecraft 1.8.1-pre2, Minecraft 1.8.1-pre3

Retrieved