Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expanding over the world up/down limits make full height set #106

Open
JulienVianey opened this issue Jul 27, 2016 · 3 comments
Open

Expanding over the world up/down limits make full height set #106

JulienVianey opened this issue Jul 27, 2016 · 3 comments

Comments

@JulienVianey
Copy link

When the //expand command is used to make a selection that goes over the top limit or under the bottom limit (for example //expand top 255 in a selection at ground level) the selection is made over the limit as asked. But if this selection is used to //set some block, then this block is set on the whole height of the world, even outside the selection (on the top if the selection goes to the bottom or on the bottom if the selection goes to the top). And the changes made outside the selection cannot be undone.

@madmaxoft
Copy link
Member

This is an interesting issue, as it has a possibility to actually crash the server (Try selecting a whole chunk and then extending the height to Y=1024).

I assume you're running a release-mode cuberite executable, since the debug-mode one would probably hit an assert in such a case and terminate.

@madmaxoft
Copy link
Member

Do you get any warnings in the server console when you try to //set the blocks?

@JulienVianey
Copy link
Author

I did //chunk then I set the height to 1024. I also tried with others heights and the same warning appears.
[15:04:57] Read: MaxBlockY more than chunk height, adjusting to chunk height. Coords: {32, 0, -48} - {48, 1024, -32}
[15:04:57] Creating a cBlockArea with height larger than world height (1024). Continuing, but the area may misbehave.
[15:04:58] Write: MinBlockY + m_SizeY more than chunk height, adjusting to chunk height

I have a release build from version (from the archlinux package) :
[15:01:08] Cuberite Jenkins clang x64 Release (master) build id: #501
[15:01:08] from commit id: e03851a78f6696a8e7e1c4839c7dec46dc87bf9a built at: Thu 23 Jun 16:25:17 CEST 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants