From 73657410888ba9fadcbeae67c3180c99aee62f9a Mon Sep 17 00:00:00 2001 From: SquidDev Date: Sat, 5 Sep 2020 10:59:39 +0100 Subject: [PATCH] Don't use entity.captureDrops at all. This really should have been removed in 9e2232d24045af46b57162f3c3213e622e67bfe9. Otherwise we don't drop these items into the world at all. Fixes #537. --- .../java/dan200/computercraft/shared/util/DropConsumer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/dan200/computercraft/shared/util/DropConsumer.java b/src/main/java/dan200/computercraft/shared/util/DropConsumer.java index 14200f0eb..477ad73de 100644 --- a/src/main/java/dan200/computercraft/shared/util/DropConsumer.java +++ b/src/main/java/dan200/computercraft/shared/util/DropConsumer.java @@ -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 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;