mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fixed an issue where item spawns were not given a proper cause, which lead to things like the super pickaxe not working
This commit is contained in:
parent
28d45870e2
commit
e1bb00e665
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user