Skip to content

Commit 6c1cad4

Browse files
committed
fix probability lib usage
1 parent b48cc2e commit 6c1cad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

we/src/main/java/io/github/projectunified/blockutil/we/WeBlockHandler.java

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

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

0 commit comments

Comments
 (0)