From a0e84d7a44559aec10404d57042ddf0e4ef3212c Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Fri, 18 Jun 2021 23:48:23 +0100 Subject: [PATCH] Fix superpickaxe item dropping Fixes #1079 --- .../src/main/java/com/sk89q/worldedit/EditSession.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java index d889adec9..042ea615a 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java @@ -584,9 +584,9 @@ public class EditSession extends PassthroughExtent implements AutoCloseable { ExtentTraverser survivalExtent = new ExtentTraverser<>(getExtent()).find(SurvivalModeExtent.class); if (survivalExtent != null) { return survivalExtent.get(); - } else { - SurvivalModeExtent survival = new SurvivalModeExtent(bypassAll, getWorld()); - bypassAll = survival; + } else { // Kind of a bad way of doing it, but equally I (dords) hate the way upstream does it by just adding ALL possible extents to an edit and only "enabling" when required + SurvivalModeExtent survival = new SurvivalModeExtent(getExtent(), getWorld()); + setExtent(survival); return survival; } }