Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4b4abe

Browse files
committed
fix request not deactivating on toggle while requesting
fixes #35
1 parent 7c28ddd commit d4b4abe

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ All notable changes to this project will be documented in this file.
77
- updated minimum Applied Energistics 2 version to 19.2.7
88
- fixed shift clicking ghost items into the Requester and Requester Terminal
99
- fixed guide book not properly working with standalone GuideME mod
10+
- fixed request not deactivating on toggle while requesting ([#35](https://github.com/AlmostReliable/merequester/issues/35))
1011

1112
### Known Bugs
1213

1314
- scroll bar renders little sections on its background
1415
- scroll bar is always visible
15-
- toggle request option sometimes not working
1616

1717
## [1.1.8] - 2024-10-05
1818

src/main/java/com/almostreliable/merequester/requester/status/RequestState.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ public class RequestState implements StatusState {
1111

1212
@Override
1313
public StatusState handle(RequesterBlockEntity owner, int index) {
14+
if (!owner.getRequestManager().get(index).getState()) {
15+
return IDLE;
16+
}
17+
1418
var amountToCraft = owner.getStorageManager().computeAmountToCraft(index);
1519
if (amountToCraft <= 0) return IDLE;
1620
var key = owner.getRequestManager().getKey(index);

0 commit comments

Comments
 (0)