Skip to content

Commit

Permalink
Fix slot type in robot container.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnuecke committed Jan 15, 2021
1 parent 80ed981 commit e97f3f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/li/cil/oc2/common/container/RobotContainer.java
Expand Up @@ -51,9 +51,9 @@ public RobotContainer(final int id, final RobotEntity robot, final PlayerInvento
}
});

handlers.getItemHandler(DeviceTypes.CARD).ifPresent(itemHandler -> {
handlers.getItemHandler(DeviceTypes.ROBOT_MODULE).ifPresent(itemHandler -> {
for (int slot = 0; slot < itemHandler.getSlots(); slot++) {
this.addSlot(new TypedSlotItemHandler(itemHandler, DeviceTypes.CARD, slot, 38, 24 + slot * SLOT_SIZE));
this.addSlot(new TypedSlotItemHandler(itemHandler, DeviceTypes.ROBOT_MODULE, slot, 38, 24 + slot * SLOT_SIZE));
}
});

Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e97f3f4

Please sign in to comment.