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 10:59:39 +01:00
parent d5368d0719
commit 7365741088
1 changed files with 1 additions and 3 deletions

View File

@ -42,8 +42,6 @@ public static void set( Entity entity, Function<ItemStack, ItemStack> consumer )
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 static void onEntitySpawn( EntityJoinWorldEvent event )
}
}
@SubscribeEvent
@SubscribeEvent( priority = EventPriority.LOW )
public static void onLivingDrops( LivingDropsEvent drops )
{
if( dropEntity == null || drops.getEntity() != dropEntity ) return;