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

Destroyed ice block doesn't create water #3018

Closed
Seadragon91 opened this issue Feb 17, 2016 · 2 comments
Closed

Destroyed ice block doesn't create water #3018

Seadragon91 opened this issue Feb 17, 2016 · 2 comments

Comments

@Seadragon91
Copy link
Contributor

Have tried to find the problem, no success...

@Seadragon91
Copy link
Contributor Author

Okay the problem is here.

This happens: ice block destroyed -> water placed -> replaced by air

Would it be okay to add a return value to OnDestroyedByPlayer and then check with it, if the block should be replaced by air?

@Seadragon91
Copy link
Contributor Author

This change works, too. Not sure if there are other blocks, like ice. This would be then less changes, then the idea above.

World->DigBlock(a_BlockX, a_BlockY, a_BlockZ);
to

if (a_OldBlock != E_BLOCK_ICE)
{
    World->DigBlock(a_BlockX, a_BlockY, a_BlockZ);
}

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

No branches or pull requests

1 participant