Minor stuff

This commit is contained in:
CovertJaguar 2013-11-15 21:19:25 -08:00
parent 8f8e8f9b9b
commit 7594b70a2e
2 changed files with 4 additions and 0 deletions

View file

@ -18,6 +18,9 @@ import net.minecraftforge.common.ForgeDirection;
* BlockHandlers are used to serialize blocks for saving/loading from
* Blueprints.
*
* To implement your own, you should extend this class and override the
* functions as needed.
*
* @author CovertJaguar <http://www.railcraft.info/>
*/
public class BlockHandler {

View file

@ -29,6 +29,7 @@ public abstract class ItemBlueprint extends ItemBuildCraft {
@Override
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean advanced) {
// TODO: This code will break in SMP, put name and creator in NBT
Blueprint blueprint = getBlueprint(stack);
if (blueprint != null) {
list.add(String.format(StringUtils.localize("item.blueprint.name"), blueprint.getName()));