More water model fixes

This commit is contained in:
Mike Primm 2018-09-01 18:07:58 -05:00
parent 1495d6c2df
commit ea139caeab
4 changed files with 17 additions and 9 deletions

View file

@ -292,6 +292,12 @@ public class DynmapBlockState {
public final void setWaterlogged() {
matchflags |= MATCH_WATERLOGGED;
}
/**
* Test if block is water OR waterlogged (block filled with water)
*/
public final boolean isWaterFilled() {
return (matchflags & (MATCH_WATERLOGGED | MATCH_WATER)) != 0;
}
/**
* Test if block is leaves
*/