geforkt von Mirrors/FastAsyncWorldEdit
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
Dieser Commit ist enthalten in:
Ursprung
d5a84d6e44
Commit
a16074cbe4
@ -232,7 +232,7 @@ public class SnowHeightMap {
|
||||
int y = (int) Math.floor(newHeight);
|
||||
int numOfLayers = (int) ((newHeight - y) * 8) + 1;
|
||||
//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
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren