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

Implement fluid physics changes #1062

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

clabe45
Copy link
Contributor

@clabe45 clabe45 commented Oct 5, 2019

Note: This code is untested (because the tests and server can't be run currently).

Waterlogging

I let blocks get waterlogged where air or water would have become a water source block. Additionally, all the functionality that deals with water in the class now treats waterlogged blocks as water source blocks (using isLiquid, getType, and getStrength).

Bubble columns

Magma and soul sand create bubble columns, and water propagates or ends them.

Since blockdata hasn't been implemented for 1.13, I wrote print statements where the blockdata should be updated.

It's not needed, because to tell if a block is waterloggable, you can simply check if its block data is an instance of Waterlogged
@clabe45 clabe45 changed the title (WIP) Implement fluid physics changes Implement fluid physics changes Jan 14, 2020
@clabe45 clabe45 requested a review from mastercoms January 19, 2020 04:32
@mastercoms mastercoms changed the base branch from 1.13 to 1.15 May 6, 2020 12:09
@mastercoms mastercoms closed this Jun 30, 2021
@mastercoms mastercoms deleted the branch GlowstoneMC:dev June 30, 2021 19:16
@mastercoms mastercoms reopened this Jun 30, 2021
@mastercoms mastercoms changed the base branch from 1.15 to dev June 30, 2021 19:17
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

Successfully merging this pull request may close these issues.

2 participants