Fix #1937 Backpacks do not hold previously defined items

This commit is contained in:
Nedelosk committed 2018-01-06 22:33:29 +01:00
1 parent 644145ac92
commit 03ecce51cc
2 files changed
+4 -2

No files matched your search

@@ -13,6 +13,8 @@ package forestry.core.config;
import java.io.File;
import java.util.Arrays;
import org.apache.commons.lang3.text.WordUtils;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.config.Property;
@@ -149,7 +151,7 @@ public class LocalizedConfiguration extends Configuration {
public void addCategoryCommentLocalized(String category){
String langKey = "for.config." + category + '.' + "category_comment";
setCategoryComment(category, Translator.translateToLocal(langKey));
setCategoryComment(category, WordUtils.wrap(Translator.translateToLocal(langKey),100));
}
}
@@ -376,7 +376,7 @@ public class ModuleBackpacks extends BlankForestryModule {
if (ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.APICULTURE))) {
BlockRegistryApiculture beeBlocks = ModuleApiculture.getBlocks();
backpackAcceptedItemDefaults.put(BackpackManager.BUILDER_UID, getItemStrings(Arrays.asList(
backpackAcceptedItemDefaults.get(BackpackManager.BUILDER_UID).addAll(getItemStrings(Arrays.asList(
new ItemStack(beeBlocks.candle, 1, OreDictionary.WILDCARD_VALUE),
new ItemStack(beeBlocks.stump, 1, OreDictionary.WILDCARD_VALUE)
)));