Some more work on the upgrades.
This commit is contained in:
parent
4f05367f52
commit
539c5d0091
2 changed files with 10 additions and 1 deletions
|
@ -119,7 +119,7 @@ public class ContainerTileInventoryBuilder {
|
|||
private ContainerTileInventoryBuilder upgradeSlots(IUpgradeable upgradeable){
|
||||
if(upgradeable.canBeUpgraded()){
|
||||
for (int i = 0; i < upgradeable.getUpgradeSlotCount(); i++) {
|
||||
this.parent.slots.add(new FilteredSlot(upgradeable.getUpgradeInvetory(), i, 0, i * 22)
|
||||
this.parent.slots.add(new FilteredSlot(upgradeable.getUpgradeInvetory(), i, -22, i * 22 + 5)
|
||||
.setFilter(stack -> stack.getItem() instanceof IUpgrade));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue