mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 06:40:05 +03:00
21 lines
918 B
Diff
21 lines
918 B
Diff
--- ../src-base/minecraft/net/minecraft/inventory/SlotCrafting.java
|
|
+++ ../src-work/minecraft/net/minecraft/inventory/SlotCrafting.java
|
|
@@ -51,6 +51,7 @@
|
|
if (this.amountCrafted > 0)
|
|
{
|
|
stack.onCrafting(this.player.world, this.player, this.amountCrafted);
|
|
+ net.minecraftforge.fml.common.FMLCommonHandler.instance().firePlayerCraftingEvent(this.player, stack, craftMatrix);
|
|
}
|
|
|
|
this.amountCrafted = 0;
|
|
@@ -67,7 +68,9 @@
|
|
public ItemStack onTake(EntityPlayer thePlayer, ItemStack stack)
|
|
{
|
|
this.onCrafting(stack);
|
|
+ net.minecraftforge.common.ForgeHooks.setCraftingPlayer(thePlayer);
|
|
NonNullList<ItemStack> nonnulllist = CraftingManager.getRemainingItems(this.craftMatrix, thePlayer.world);
|
|
+ net.minecraftforge.common.ForgeHooks.setCraftingPlayer(null);
|
|
|
|
for (int i = 0; i < nonnulllist.size(); ++i)
|
|
{
|