3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-27 11:20:04 +01: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 { 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 {