mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Use isMovementBlocker() instead of isSolid() in heightmap calculation (#2822)
This commit is contained in:
parent
75d9475cf7
commit
eedd8ee044
@ -17,19 +17,19 @@ public enum HeightMapType {
|
|||||||
MOTION_BLOCKING {
|
MOTION_BLOCKING {
|
||||||
@Override
|
@Override
|
||||||
public boolean includes(BlockState state) {
|
public boolean includes(BlockState state) {
|
||||||
return state.getMaterial().isSolid() || HeightMapType.hasFluid(state);
|
return state.getMaterial().isMovementBlocker() || HeightMapType.hasFluid(state);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
MOTION_BLOCKING_NO_LEAVES {
|
MOTION_BLOCKING_NO_LEAVES {
|
||||||
@Override
|
@Override
|
||||||
public boolean includes(BlockState state) {
|
public boolean includes(BlockState state) {
|
||||||
return (state.getMaterial().isSolid() || HeightMapType.hasFluid(state)) && !HeightMapType.isLeaf(state);
|
return (state.getMaterial().isMovementBlocker() || HeightMapType.hasFluid(state)) && !HeightMapType.isLeaf(state);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
OCEAN_FLOOR {
|
OCEAN_FLOOR {
|
||||||
@Override
|
@Override
|
||||||
public boolean includes(BlockState state) {
|
public boolean includes(BlockState state) {
|
||||||
return state.getMaterial().isSolid();
|
return state.getMaterial().isMovementBlocker();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
WORLD_SURFACE {
|
WORLD_SURFACE {
|
||||||
|
Loading…
Reference in New Issue
Block a user