mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
Properly calculate level cost for books. Fixes BUKKIT-3410
This commit is contained in:
@@ -196,6 +196,10 @@ public class ContainerAnvil extends Container {
|
||||
i3 = 1;
|
||||
}
|
||||
|
||||
if (flag) {
|
||||
i3 = Math.max(1, i3 / 2);
|
||||
}
|
||||
|
||||
i += i3 * k2;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user