1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-11-10 20:09:58 +00:00

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

View File

@ -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;