mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
face430c9a | ||
|
|
4bdbd201d0 | ||
|
|
b0da508c8b | ||
|
|
9759f110ad |
@@ -71,7 +71,7 @@ public class ItemFocusXPDrain extends ItemModKamiFocus {
|
||||
int intendedAdd = Math.round(500 * multiplier);
|
||||
int actualAdd = Math.min(intendedAdd, maxVis - lowestAmount);
|
||||
|
||||
int xpUse = getXpUse(stack);
|
||||
int xpUse = getXpUse(wand.getFocusItem(stack));
|
||||
int scaledXp = Math.max(1, Math.round(xpUse * (actualAdd / (float) intendedAdd)));
|
||||
|
||||
if (player.experienceTotal >= scaledXp) {
|
||||
|
||||
Reference in new issue
Block a user