Don't use entity.captureDrops at all.

This really should have been removed in 9e2232d240.
Otherwise we don't drop these items into the world at all. Fixes #537.
This commit is contained in:
SquidDev
2020-09-05 11:02:24 +01:00
parent d5368d0719
commit 7365741088
@@ -42,8 +42,6 @@ public final class DropConsumer
dropEntity = entity;
dropWorld = entity.world;
dropBounds = new AxisAlignedBB( entity.getPosition() ).grow( 2, 2, 2 );
entity.captureDrops( new ArrayList<>() );
}
public static void set( World world, BlockPos pos, Function<ItemStack, ItemStack> consumer )
@@ -86,7 +84,7 @@ public final class DropConsumer
}
}
@SubscribeEvent
@SubscribeEvent( priority = EventPriority.LOW )
public static void onLivingDrops( LivingDropsEvent drops )
{
if( dropEntity == null || drops.getEntity() != dropEntity ) return;