mirror of
https://github.com/GTNewHorizons/JustEnoughCalculation.git
synced 2026-11-28 07:35:41 +00:00
feat: new amount editing logic
- edit amount by scrolling will not remove the label - now right click in recipe gui will remove the label
This commit is contained in:
1 parent
b6d5a7a9fe
commit
74e43cc883
10 files changed
+75
-38
No files matched your search
@@ -462,9 +462,11 @@ public interface ILabel {
|
||||
|
||||
@Override
|
||||
public ILabel decreaseAmount() {
|
||||
if (getAmount() <= getMultiplier())
|
||||
if (getAmount() <= 0) {
|
||||
return ILabel.EMPTY;
|
||||
else {
|
||||
} if (getAmount() <= getMultiplier()) {
|
||||
return this;
|
||||
} else {
|
||||
return setAmount(getAmount() - getMultiplier());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user