3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-06 16:12:51 +02:00

Fixed an issue where item spawns were not given a proper cause, which lead to things like the super pickaxe not working

Dieser Commit ist enthalten in:
Wyatt Childers 2016-07-04 17:17:52 -04:00
Ursprung 28d45870e2
Commit e1bb00e665

Datei anzeigen

@ -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);
}
}