From e1bb00e66534d6d934b66beaa324ff601ca7533f Mon Sep 17 00:00:00 2001 From: Wyatt Childers Date: Mon, 4 Jul 2016 17:17:52 -0400 Subject: [PATCH] Fixed an issue where item spawns were not given a proper cause, which lead to things like the super pickaxe not working --- .../src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java index 7d97bc7b4..00dda0444 100644 --- a/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java +++ b/worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java @@ -205,7 +205,7 @@ public abstract class SpongeWorld extends AbstractWorld { if (optItem.isPresent()) { org.spongepowered.api.entity.Entity entity = optItem.get(); entity.offer(Keys.REPRESENTED_ITEM, SpongeWorldEdit.toSpongeItemStack(item).createSnapshot()); - getWorld().spawnEntity(entity, Cause.source(SpongeWorldEdit.container()).build()); + getWorld().spawnEntity(entity, ENTITY_SPAWN_CAUSE); } }