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

view distance #1659

Merged
merged 1 commit into from
Dec 13, 2017
Merged

view distance #1659

merged 1 commit into from
Dec 13, 2017

Conversation

kashike
Copy link
Contributor

@kashike kashike commented Oct 4, 2017

@@ -447,4 +446,20 @@ default void setSerializationBehavior(SerializationBehavior behavior) {
* @throws IOException If the save failed
*/
boolean save() throws IOException;

/**
* Gets the view distance for this world.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should specify that the value is in chunks

*
* @param viewDistance The view distance
*/
void setViewDistance(final int viewDistance);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also we have no way of unsetting a world's view distance (setting it to use the global setting rather).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as per SpongePowered/Sponge#1557 (diff) sending a value of -1 resets it.

if this remains in the API, it needs to be documented.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can probably do better than that

@Zidane
Copy link
Member

Zidane commented Nov 30, 2017

@kashike

This needs to be updated to address @Deamon5550 's concerns above.

@gabizou gabizou merged commit b1cbcfc into bleeding Dec 13, 2017
gabizou added a commit that referenced this pull request Dec 13, 2017
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
@gabizou gabizou deleted the feature/vd branch March 7, 2019 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants