mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Properly calculate level cost for books. Fixes BUKKIT-3410
This commit is contained in:
parent
f1efe717bd
commit
f10c986136
1 changed files with 4 additions and 0 deletions
|
@ -196,6 +196,10 @@ public class ContainerAnvil extends Container {
|
|||
i3 = 1;
|
||||
}
|
||||
|
||||
if (flag) {
|
||||
i3 = Math.max(1, i3 / 2);
|
||||
}
|
||||
|
||||
i += i3 * k2;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue