Skip to content

Commit 9464e22

Browse files
committed
fix: 'effect' action gives an unwanted extra level
1 parent 1d3202e commit 9464e22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/me/zetastormy/akropolis/action/actions/PotionEffectAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void execute(AkropolisPlugin plugin, Player player, String data) {
4343

4444
try {
4545
xpotion.ifPresent(p -> {
46-
PotionEffect potionEffect = p.buildPotionEffect(1000000, Integer.parseInt(args[1]) - 1);
46+
PotionEffect potionEffect = p.buildPotionEffect(1000000, Integer.parseInt(args[1]));
4747

4848
if (potionEffect == null) throw new IllegalStateException();
4949

0 commit comments

Comments
 (0)