Skip to content

Commit baf5cbc

Browse files
committed
Fixed PlayEffect not using WrappersAdapter#spawnEffect
1 parent 83a172b commit baf5cbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/src/main/resources/commands/PlayEffect.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def run = { sender, label, args ->
4343
def option = getOption(sender, type, optionType, Arrays.copyOfRange(args, 1, args.length))
4444
particle = type.create(option)
4545
} else particle = type.create()
46-
WrappersAdapter.spawnParticle(sender, particle, sender.getEyeLocation(), 1)
46+
WrappersAdapter.spawnEffect(sender, particle, sender.getEyeLocation())
4747
} catch (IndexOutOfBoundsException ignored) {
4848
sender.sendMessage('Usage: /playeffect <particle> <data...>')
4949
} catch (NumberFormatException ignored) {

0 commit comments

Comments
 (0)