mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Add Crafting Tweaks compatibility to Crafting Table on a Stick (#702)
This commit is contained in:
parent
e33f9e174d
commit
f20613a0c6
2 changed files with 21 additions and 0 deletions
|
@ -46,6 +46,7 @@ import de.ellpeck.actuallyadditions.mod.tile.TileEntityBase;
|
|||
import de.ellpeck.actuallyadditions.mod.update.UpdateChecker;
|
||||
import de.ellpeck.actuallyadditions.mod.util.ItemUtil;
|
||||
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
||||
import de.ellpeck.actuallyadditions.mod.util.compat.CraftingTweaksCompat;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
|
@ -116,6 +117,8 @@ public class ActuallyAdditions{
|
|||
InitCrafting.init();
|
||||
InitEntities.init();
|
||||
|
||||
CraftingTweaksCompat.register();
|
||||
|
||||
proxy.init(event);
|
||||
|
||||
ModUtil.LOGGER.info("Initialization Finished.");
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue