Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-09 13:00:05 +01:00
Use isMovementBlocker() instead of isSolid() in heightmap calculation (#2822)
Dieser Commit ist enthalten in:
Ursprung
75d9475cf7
Commit
eedd8ee044
@ -17,19 +17,19 @@ public enum HeightMapType {
|
||||
MOTION_BLOCKING {
|
||||
@Override
|
||||
public boolean includes(BlockState state) {
|
||||
return state.getMaterial().isSolid() || HeightMapType.hasFluid(state);
|
||||
return state.getMaterial().isMovementBlocker() || HeightMapType.hasFluid(state);
|
||||
}
|
||||
},
|
||||
MOTION_BLOCKING_NO_LEAVES {
|
||||
@Override
|
||||
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 {
|
||||
@Override
|
||||
public boolean includes(BlockState state) {
|
||||
return state.getMaterial().isSolid();
|
||||
return state.getMaterial().isMovementBlocker();
|
||||
}
|
||||
},
|
||||
WORLD_SURFACE {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren