Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Fix block entries not applying for all metas if given
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Oct 18, 2016
1 parent d14b777 commit 5c2ca16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private void applyBlockChanges() {
}
config.blocks.forEach(
(tool, blockHarvestLevels) -> blockHarvestLevels.forEach(
(blockMeta, level) -> modifyBlock(new ItemStack(blockMeta.block, 1, blockMeta.metadata), tool, level)
(blockMeta, level) -> modifyBlock(new ItemStack(blockMeta.block, 1, blockMeta.metadata == -1 ? OreDictionary.WILDCARD_VALUE : blockMeta.metadata), tool, level)
));
}

Expand Down

0 comments on commit 5c2ca16

Please sign in to comment.