GlowstoneMC / Glowstone

A fast, customizable and compatible open source server for Minecraft: Java Edition
https://glowstone.net
Other
1.88k stars 270 forks source link

Implement fluid physics changes #1062

Open clabe45 opened 4 years ago

clabe45 commented 4 years ago

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.