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
Create a server, accept eula and set server.properties
generate-structures=falseStart the server
Join the server
Op yourself using the server console
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