mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-07 07:50:27 +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:
parent
d5368d0719
commit
7365741088
@ -42,8 +42,6 @@ public final class DropConsumer
|
|||||||
dropEntity = entity;
|
dropEntity = entity;
|
||||||
dropWorld = entity.world;
|
dropWorld = entity.world;
|
||||||
dropBounds = new AxisAlignedBB( entity.getPosition() ).grow( 2, 2, 2 );
|
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 )
|
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 )
|
public static void onLivingDrops( LivingDropsEvent drops )
|
||||||
{
|
{
|
||||||
if( dropEntity == null || drops.getEntity() != dropEntity ) return;
|
if( dropEntity == null || drops.getEntity() != dropEntity ) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user