Fire crafting events and stuff
This commit is contained in:
@@ -5,6 +5,7 @@ import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.InventoryCrafting;
|
||||
import net.minecraft.inventory.SlotCrafting;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fml.common.FMLCommonHandler;
|
||||
import refinedstorage.container.ContainerGrid;
|
||||
import refinedstorage.tile.TileGrid;
|
||||
|
||||
@@ -23,6 +24,10 @@ public class SlotGridCraftingResult extends SlotCrafting {
|
||||
|
||||
@Override
|
||||
public void onPickupFromSlot(EntityPlayer player, ItemStack stack) {
|
||||
FMLCommonHandler.instance().firePlayerCraftingEvent(player, stack, craftingMatrix);
|
||||
|
||||
onCrafting(stack);
|
||||
|
||||
grid.onCrafted(container);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user