Skip to content

Commit

Permalink
Fix dispensor stacks not ignoring empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Jul 10, 2019
1 parent d9df78b commit a0f36aa
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -344,8 +344,10 @@ private void registerDispenserBehavior() {
if(Config.enableCauldronDispenser) {
Multimap<Item,Integer> map = HashMultimap.create();
for(String line : Config.cauldronDispenserRecipes) {
ItemStack stack = RecipeUtil.getItemStackFromString(line, true);
map.put(stack.getItem(), stack.getMetadata());
if (!StringUtils.isNullOrEmpty(line)) {
ItemStack stack = RecipeUtil.getItemStackFromString(line, true);
map.put(stack.getItem(), stack.getMetadata());
}
}
for(Map.Entry<Item,Collection<Integer>> entry : map.asMap().entrySet()) {
registerDispenseCauldronLogic(entry.getKey(), toArray(entry.getValue()));
Expand Down

0 comments on commit a0f36aa

Please sign in to comment.