mojira.dev
MC-306462

locate command crashing server when generate-structures is set to false

When using the locate command for any structure (e.g. /locate structure #minecraft:village) and the in the server.properties generate-structures=false is set, the server crashes.

Steps To Reproduce

  1. Create a server, accept eula and set server.properties generate-structures=false

  2. Start the server

  3. Join the server

  4. Op yourself using the server console

  5. Execute /locate structure #minecraft:village

Observed Behavior

The server crashes after executing the command.

Expected Behavior

The server should not crash and an error message indicating that there are no structures in the world should be sent.

Environment

5° celsius

Attachments

Comments 1

MrKinau

(Unassigned)

Confirmed

Crash

26.1 Snapshot 8

Retrieved