package carpentersblocks.util.handler;

import carpentersblocks.tileentity.TEBase;
import carpentersblocks.tileentity.TECarpentersDaylightSensor;
import carpentersblocks.tileentity.TECarpentersFlowerPot;
import carpentersblocks.tileentity.TECarpentersSafe;
import carpentersblocks.tileentity.TECarpentersTorch;
import cpw.mods.fml.common.registry.GameRegistry;

public class TileEntityHandler {

    /**
     * Registers tile entities.
     */
    public static void registerTileEntities()
    {
        GameRegistry.registerTileEntity(                    TEBase.class,          "TileEntityCarpentersBlock");
        GameRegistry.registerTileEntity(TECarpentersDaylightSensor.class, "TileEntityCarpentersDaylightSensor");
        GameRegistry.registerTileEntity(         TECarpentersTorch.class,          "TileEntityCarpentersTorch");
        GameRegistry.registerTileEntity(          TECarpentersSafe.class,           "TileEntityCarpentersSafe");
        GameRegistry.registerTileEntity(     TECarpentersFlowerPot.class,      "TileEntityCarpentersFlowerPot");
    }

}

@@ -1053,16 +1053,536 @@
 erPot%22);
+%0A%0A        registerCompatibilityMappings();%0A    %7D%0A%0A    /**%0A     * Add tile entity class mappings needed to retain compatibility%0A     * with older versions of this mod.%0A     */%0A    private static void registerCompatibilityMappings()%0A    %7B%0A        GameRegistry.registerTileEntity(                    TEBase.class, %22TileEntityCarpentersSlope%22); // Mapping prior to MC 1.7+ migration%0A        GameRegistry.registerTileEntity(TECarpentersDaylightSensor.class,   %22TileEntityCarpentersExt%22); // Mapping prior to MC 1.7+ migration
 %0A    %7D%0A%0A

Add tile entity mappings to support 1.6.4 migrated worlds.