Commit 81ac6f7
authored
Fix potion command not supporting infinite durations (#6236)
Minecraft understands infinite durations to be `-1` and only `-1`. Our
second -> tick conversion was changing this to `-20` causing a potion
command with a `-1` duration to end up as `-20` and only causing the
potion to occur for 1 tick.
Fixes #55581 parent 7bc91f1 commit 81ac6f7
File tree
1 file changed
+2
-1
lines changed- Essentials/src/main/java/com/earth2me/essentials
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
| 552 | + | |
| 553 | + | |
553 | 554 | | |
554 | 555 | | |
555 | 556 | | |
| |||
0 commit comments