mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
Fix TransporterStack home locations & DM inventory interaction (#5335)
* Fix DM charge slot inventory interaction, fixed TransporterStack home paths * Added clarification comment to JavaDoc for canBeCharged/Discharged
This commit is contained in:
1 parent
b0f9e1b2ee
commit
17708ce587
5 files changed
+53
-78
No files matched your search
@@ -172,7 +172,7 @@ public class TileEntityAdvancedBoundingBlock extends TileEntityBoundingBlock imp
|
||||
return false;
|
||||
}
|
||||
|
||||
return inv.canBoundInsert(getPos(), i, itemstack);
|
||||
return inv.isItemValidForSlot(i, itemstack);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -202,12 +202,17 @@ public class TileEntityAdvancedBoundingBlock extends TileEntityBoundingBlock imp
|
||||
return InventoryUtils.EMPTY;
|
||||
}
|
||||
|
||||
return inv.getBoundSlots(getPos(), side);
|
||||
return inv.getSlotsForFace(side);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInsertItem(int i, @Nonnull ItemStack itemstack, @Nonnull EnumFacing side) {
|
||||
return isItemValidForSlot(i, itemstack);
|
||||
IAdvancedBoundingBlock inv = getInv();
|
||||
if (inv == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return inv.canInsertItem(i, itemstack, side);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -217,7 +222,7 @@ public class TileEntityAdvancedBoundingBlock extends TileEntityBoundingBlock imp
|
||||
return false;
|
||||
}
|
||||
|
||||
return inv.canBoundExtract(getPos(), i, itemstack, side);
|
||||
return inv.canExtractItem(i, itemstack, side);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user