allow shift click on side config button to reset all sides to default

This commit is contained in:
Matthias Mann committed 2015-02-07 09:59:59 +01:00
1 parent 87d7701ec0
commit 28c919ee09
13 files changed
+160 -76

No files matched your search

@@ -74,6 +74,14 @@ public class TileBuffer extends AbstractPowerConsumerEntity implements IPaintabl
}
}
@Override
public void clearAllIoModes() {
super.clearAllIoModes();
if(dist != null) {
dist.neighboursChanged();
}
}
@Override
public boolean canInsertItem(int slot, ItemStack var2, int side) {
return hasInventory() && getIoMode(ForgeDirection.VALID_DIRECTIONS[side]).canRecieveInput() && isMachineItemValidForSlot(slot, var2);