From 286e682902feb7c65736c3ad21dc382cb414819b Mon Sep 17 00:00:00 2001 From: Ammar Askar Date: Wed, 31 Oct 2012 21:46:30 +0500 Subject: [PATCH] Add missing spout WorldEditPlugin edit session factory call --- src/spout/java/com/sk89q/worldedit/spout/WorldEditPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spout/java/com/sk89q/worldedit/spout/WorldEditPlugin.java b/src/spout/java/com/sk89q/worldedit/spout/WorldEditPlugin.java index 773ef0f8e..c3582e54a 100644 --- a/src/spout/java/com/sk89q/worldedit/spout/WorldEditPlugin.java +++ b/src/spout/java/com/sk89q/worldedit/spout/WorldEditPlugin.java @@ -209,8 +209,8 @@ public class WorldEditPlugin extends CommonPlugin { LocalSession session = controller.getSession(wePlayer); BlockBag blockBag = session.getBlockBag(wePlayer); - EditSession editSession = - new EditSession(wePlayer.getWorld(), session.getBlockChangeLimit(), blockBag); + EditSession editSession = WorldEdit.getInstance().getEditSessionFactory() + .getEditSession(wePlayer.getWorld(), session.getBlockChangeLimit(), blockBag); editSession.enableQueue(); return editSession;