We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0fc0eb commit 3c1eaa9Copy full SHA for 3c1eaa9
fawe/src/main/java/io/github/projectunified/blockutil/fawe/FaweBlockHandler.java
@@ -43,7 +43,7 @@ private BlockState toBlockState(BlockData blockData) {
43
44
private RandomPattern createRandomPattern(ProbabilityCollection<BlockData> probabilityCollection) {
45
RandomPattern randomPattern = new RandomPattern();
46
- probabilityCollection.iterator().forEachRemaining(element -> randomPattern.add(toBlockState(element.getObject()), element.getProbability()));
+ probabilityCollection.iterator().forEachRemaining(element -> randomPattern.add(toBlockState(element.getKey()), element.getValue()));
47
return randomPattern;
48
}
49
0 commit comments