We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf4eaa8 commit 09402d5Copy full SHA for 09402d5
src/main/java/gregtech/api/capability/impl/ItemHandlerList.java
@@ -236,11 +236,7 @@ private boolean invalidIndex(int index) {
236
237
private void updateHandlerArray() {
238
if (handlers.length != size()) {
239
- handlers = new IItemHandler[size()];
240
- int i = 0;
241
- for (IItemHandler h : baseIndexOffset.keySet()) {
242
- handlers[i++] = h;
243
- }
+ handlers = baseIndexOffset.keySet().toArray(new IItemHandler[size()]);
244
}
245
246
0 commit comments