Skip to content

Commit

Permalink
Remove reference to ItemPickupEvent - the insert into bag feature see…
Browse files Browse the repository at this point in the history
…ms to work regardless.

Plus it wasn't working anyway and no one complained.
  • Loading branch information
AlgorithmX2 committed Dec 1, 2017
1 parent 0fb1330 commit 6ceeb7b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main/java/mod/chiselsandbits/items/ItemBitBag.java
Expand Up @@ -31,7 +31,6 @@
import net.minecraftforge.common.capabilities.ICapabilityProvider;
import net.minecraftforge.event.entity.player.EntityItemPickupEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.PlayerEvent.ItemPickupEvent;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.items.CapabilityItemHandler;
Expand Down Expand Up @@ -215,17 +214,6 @@ private boolean updateEntity(
}
}

@SubscribeEvent
public void pickupItems(
final ItemPickupEvent event )
{
final EntityItem ei = event.pickedUp;
if ( ei != null )
{
cleanupInventory( event.player, ei.getEntityItem() );
}
}

static public void cleanupInventory(
final EntityPlayer player,
final ItemStack is )
Expand Down

0 comments on commit 6ceeb7b

Please sign in to comment.