From 0f77cb357bfe3d9743e1b917690e5fcc6ac52803 Mon Sep 17 00:00:00 2001 From: OdiumxXx Date: Sat, 8 Dec 2012 21:03:45 +1000 Subject: [PATCH] Fixed ContainerBlocks spilling items when edited. Fixed ContainerBlocks spilling items when edited, which caused an Item Duplication Exploit. http://youtrack.sk89q.com/issue/WORLDEDIT-2381 - [Now Resolved] --- src/main/java/com/sk89q/worldedit/EditSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/EditSession.java b/src/main/java/com/sk89q/worldedit/EditSession.java index e8a78c9da..358a20fb1 100644 --- a/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/src/main/java/com/sk89q/worldedit/EditSession.java @@ -194,7 +194,7 @@ public class EditSession { final int existing = world.getBlockType(pt); // Clear the container block so that it doesn't drop items - if (BlockType.isContainerBlock(existing) && blockBag == null) { + if (BlockType.isContainerBlock(existing)) { world.clearContainerBlockContents(pt); // Ice turns until water so this has to be done first } else if (existing == BlockID.ICE) {