Skip to content

Commit 86eacc4

Browse files
committed
Updated FoamFix error message
- as a direct consequence of asiekierka/FoamFix#105 being solved. - Commented out some log spam.
1 parent 0621060 commit 86eacc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/dimdev/dimdoors/shared/tools/SchematicConverter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static Schematic convertSchematic(NBTTagCompound nbt, String schematicId,
186186
item = Item.getItemById(oldID);
187187
NBTTagCompound subTag = itemTag.getCompoundTag("tag");
188188
NBTTagList oldPages = subTag.getTagList("pages", STRING_TAG_ID);
189-
DimDoors.log.info("Written book has " + oldPages.tagCount() + " pages." + (oldPages.tagCount() == 0 ? " STRING_TAG_ID is " + STRING_TAG_ID : ""));
189+
//DimDoors.log.info("Written book has " + oldPages.tagCount() + " pages." + (oldPages.tagCount() == 0 ? " STRING_TAG_ID is " + STRING_TAG_ID : ""));
190190
NBTTagList newPages = new NBTTagList();
191191
for (NBTBase pageNBTBase : oldPages) {
192192
NBTTagString oldPageNBT = (NBTTagString) pageNBTBase;
@@ -195,7 +195,7 @@ public static Schematic convertSchematic(NBTTagCompound nbt, String schematicId,
195195
String newPage = ITextComponent.Serializer.componentToJson(new TextComponentString(oldPage)); //substitutes paragraph break characters with "\n"
196196
NBTTagString newPageNBT = new NBTTagString(newPage); //this HAS to be created new, because a change doesn't propagate up to pageNBTBase completely. Only the first word gets read from the tag list eventually. I don't know why, but it does.
197197
newPages.appendTag(newPageNBT);
198-
DimDoors.log.info("Converted written book page: \n{ " + oldPage + "\n into: \n" + newPageNBT.getString() + "\n.");
198+
//DimDoors.log.info("Converted written book page: \n{ " + oldPage + "\n into: \n" + newPageNBT.getString() + "\n.");
199199
}
200200
subTag.setTag("pages", newPages);
201201
break;
@@ -216,7 +216,7 @@ public static Schematic convertSchematic(NBTTagCompound nbt, String schematicId,
216216
if (oldMeta != newMeta) {
217217
itemTag.setInteger("Damage", newMeta);
218218
}
219-
DimDoors.log.info("ID of itemstack in inventory set from " + oldID + " to '" + newID + "'.");
219+
//DimDoors.log.info("ID of itemstack in inventory set from " + oldID + " to '" + newID + "'.");
220220
}
221221
break;
222222
case "Sign":
@@ -415,7 +415,7 @@ private static String translateId(String id) { // TODO
415415
throw new RuntimeException("Tile entity ID " + id + " not supported by conversion code");
416416
}
417417
if (location == null) {
418-
DimDoors.log.error("Resourcelocation of TileEntity with old ID: " + id + " was null. If you want to complain about log spam; " + (id.equals("Hopper") ? "it is very likely that it's FoamFix causing this." : "we have no idea what causes this, so please report it."));
418+
DimDoors.log.error("Resourcelocation of TileEntity with old ID: " + id + " was null. If you want to complain about log spam; " + (id.equals("Hopper") ? "it is very likely that it's FoamFix causing this. Please update it to at least version 0.9.0-1.12.2!" : "we have no idea what causes this, so please report it."));
419419
location = translateIdCrude(id);
420420
} else {
421421
//DimDoors.log.info("Resourcelocation succesfully translated from old ID: " + oldID + " into: " + newID + ".");

0 commit comments

Comments
 (0)