Skip to content

Commit dfdb33e

Browse files
committed
Fixed that the getRequests() function from the colony integrator wouldn't return items anymore
1 parent 59aa0f2 commit dfdb33e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
10+
### Fixed
11+
- Fixed that the getRequests() function from the colony integrator wouldn't return items anymore
12+
913
## [1.21.1-0.7.54b] - 2025-07-12
1014

1115
### Fixed

src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/ColonyPeripheral.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public final Object getRequests() throws LuaException {
276276
map.put("state", request.getState().toString());
277277
map.put("count", deliverableRequest.getCount());
278278
map.put("minCount", deliverableRequest.getMinimumCount());
279-
map.put("items", request.getDeliveries().stream().map(item -> LuaConverter.itemStackToObject(item, getLevel())).collect(Collectors.toList()));
279+
map.put("items", request.getDisplayStacks().stream().map(item -> LuaConverter.itemStackToObject(item, getLevel())).collect(Collectors.toList()));
280280
map.put("target", request.getRequester().getRequesterDisplayName(requestManager, request).getString());
281281
result.add(map);
282282
});

0 commit comments

Comments
 (0)