3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-18 22:10:03 +02:00

Use isMovementBlocker() instead of isSolid() in heightmap calculation (#2822)

Dieser Commit ist enthalten in:
Hannes Greule 2024-07-02 20:34:02 +02:00 committet von GitHub
Ursprung 75d9475cf7
Commit eedd8ee044
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -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 {