Add Crafting Tweaks compatibility to Crafting Table on a Stick (#702)

This commit is contained in:
BlayTheNinth 2017-03-19 16:24:58 +01:00 committed by Ellpeck
parent e33f9e174d
commit f20613a0c6
2 changed files with 21 additions and 0 deletions

View file

@ -46,6 +46,7 @@ import de.ellpeck.actuallyadditions.mod.tile.TileEntityBase;
import de.ellpeck.actuallyadditions.mod.update.UpdateChecker; import de.ellpeck.actuallyadditions.mod.update.UpdateChecker;
import de.ellpeck.actuallyadditions.mod.util.ItemUtil; import de.ellpeck.actuallyadditions.mod.util.ItemUtil;
import de.ellpeck.actuallyadditions.mod.util.ModUtil; import de.ellpeck.actuallyadditions.mod.util.ModUtil;
import de.ellpeck.actuallyadditions.mod.util.compat.CraftingTweaksCompat;
import net.minecraft.server.MinecraftServer; import net.minecraft.server.MinecraftServer;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.fluids.FluidRegistry; import net.minecraftforge.fluids.FluidRegistry;
@ -116,6 +117,8 @@ public class ActuallyAdditions{
InitCrafting.init(); InitCrafting.init();
InitEntities.init(); InitEntities.init();
CraftingTweaksCompat.register();
proxy.init(event); proxy.init(event);
ModUtil.LOGGER.info("Initialization Finished."); ModUtil.LOGGER.info("Initialization Finished.");

View file

@ -0,0 +1,18 @@
package de.ellpeck.actuallyadditions.mod.util.compat;
import de.ellpeck.actuallyadditions.mod.inventory.ContainerCrafter;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.fml.common.event.FMLInterModComms;
public class CraftingTweaksCompat{
private static final String MOD_ID = "craftingtweaks";
public static void register(){
NBTTagCompound tagCompound = new NBTTagCompound();
tagCompound.setString("ContainerClass", ContainerCrafter.class.getName());
tagCompound.setString("AlignToGrid", "left");
FMLInterModComms.sendMessage(MOD_ID, "RegisterProvider", tagCompound);
}
}