From 544bcaa599b296aaf9affe55c68ee1810c6a38c6 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sun, 24 Oct 2021 19:11:21 +0100 Subject: [PATCH] Clear the entity drop list as well as cancelling Fixes #940 --- src/main/java/dan200/computercraft/shared/util/DropConsumer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/dan200/computercraft/shared/util/DropConsumer.java b/src/main/java/dan200/computercraft/shared/util/DropConsumer.java index ee80f44db..ff8a6b87c 100644 --- a/src/main/java/dan200/computercraft/shared/util/DropConsumer.java +++ b/src/main/java/dan200/computercraft/shared/util/DropConsumer.java @@ -97,6 +97,7 @@ public final class DropConsumer if( dropEntity == null || drops.getEntity() != dropEntity ) return; for( ItemEntity drop : drops.getDrops() ) handleDrops( drop.getItem() ); + drops.getDrops().clear(); drops.setCanceled( true ); } }