Skip to content

Commit 3c1eaa9

Browse files
committed
fix new probability lib
1 parent b0fc0eb commit 3c1eaa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fawe/src/main/java/io/github/projectunified/blockutil/fawe/FaweBlockHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private BlockState toBlockState(BlockData blockData) {
4343

4444
private RandomPattern createRandomPattern(ProbabilityCollection<BlockData> probabilityCollection) {
4545
RandomPattern randomPattern = new RandomPattern();
46-
probabilityCollection.iterator().forEachRemaining(element -> randomPattern.add(toBlockState(element.getObject()), element.getProbability()));
46+
probabilityCollection.iterator().forEachRemaining(element -> randomPattern.add(toBlockState(element.getKey()), element.getValue()));
4747
return randomPattern;
4848
}
4949

0 commit comments

Comments
 (0)