Fixed crafting event in Crafting Grid being fired twice, fixes #1685

This commit is contained in:
raoulvdberge
2018-03-08 17:59:01 +01:00
parent 98e7d485c0
commit 1bd2a44820
2 changed files with 1 additions and 3 deletions

View File

@@ -10,6 +10,7 @@
- Fixed NBT/metadata check on exporting in an Interface (ineternet)
- Fixed Disk Manipulator being stuck on unemptiable, non-empty disks (ineternet)
- Fixed orientations of the Portable Grid (TeamSpen210)
- Fixed crafting event in Crafting Grid being fired twice (raoulvdberge)
- Disk Manipulator in fluid mode will now extract a bucket at a time instead of 1 mB (or 64 buckets at a time with a Stack Upgrade instead of 64 mB) (raoulvdberge)
### 1.5.31

View File

@@ -5,7 +5,6 @@ import com.raoulvdberge.refinedstorage.container.ContainerGrid;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.SlotCrafting;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.FMLCommonHandler;
import javax.annotation.Nonnull;
@@ -23,8 +22,6 @@ public class SlotGridCraftingResult extends SlotCrafting {
@Override
@Nonnull
public ItemStack onTake(EntityPlayer player, @Nonnull ItemStack stack) {
FMLCommonHandler.instance().firePlayerCraftingEvent(player, stack, grid.getCraftingMatrix());
onCrafting(stack);
if (!player.getEntityWorld().isRemote) {