mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix //snowsmooth
not working below Y0 (#1769)
* Use min y instead of 0 for SnowHeightMap * Correctly handle rounding for height * Revert old fix * Use y instead of newHeight * Remove line diff
This commit is contained in:
parent
d5a84d6e44
commit
a16074cbe4
@ -232,7 +232,7 @@ public class SnowHeightMap {
|
|||||||
int y = (int) Math.floor(newHeight);
|
int y = (int) Math.floor(newHeight);
|
||||||
int numOfLayers = (int) ((newHeight - y) * 8) + 1;
|
int numOfLayers = (int) ((newHeight - y) * 8) + 1;
|
||||||
//FAWE start - avoid BlockVector3 creation for no reason
|
//FAWE start - avoid BlockVector3 creation for no reason
|
||||||
session.setBlock(x, (int) newHeight, z, BlockTypes.SNOW.getDefaultState().with(LAYERS, numOfLayers));
|
session.setBlock(x, y, z, BlockTypes.SNOW.getDefaultState().with(LAYERS, numOfLayers));
|
||||||
//FAWE end
|
//FAWE end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user