Switch `source` and `owner` around in `/spawnmob`
@@ -93,8 +93,8 @@ public class SpawnMobCommand extends AbstractCommand.SimpleTargetOtherPlayer {
// Sponge requires the root cause to be a SpawnCause. So we don't lose sight of the subject causing this,
// we make use of Sponge's awesome Cause system, and just make them the second argument.
Cause cause = Cause.of(
- NamedCause.owner(SpawnCause.builder().type(SpawnTypes.PLUGIN).build()),
- NamedCause.source(pl));
+ NamedCause.source(SpawnCause.builder().type(SpawnTypes.PLUGIN).build()),
+ NamedCause.owner(pl));
do {
Entity e = w.createEntity(et, loc.getPosition());
if (!w.spawnEntity(e, cause)) {
