A few fixes

This commit is contained in:
Aidan Brady 2013-12-22 01:07:47 -05:00
parent 87ce53f3fe
commit 0f7e8eec31
4 changed files with 8 additions and 5 deletions

View file

@ -115,6 +115,7 @@ public class ItemPartTransmitter extends JItemMultiPart
list.add(EnumColor.DARK_GREY + "Capable of transferring:"); list.add(EnumColor.DARK_GREY + "Capable of transferring:");
list.add("- " + EnumColor.PURPLE + "Items (universal)"); list.add("- " + EnumColor.PURPLE + "Items (universal)");
list.add("- " + EnumColor.PURPLE + "Blocks (universal)"); list.add("- " + EnumColor.PURPLE + "Blocks (universal)");
break;
} }
case 4: case 4:
{ {
@ -122,6 +123,7 @@ public class ItemPartTransmitter extends JItemMultiPart
list.add("- " + EnumColor.PURPLE + "Items (universal)"); list.add("- " + EnumColor.PURPLE + "Items (universal)");
list.add("- " + EnumColor.PURPLE + "Blocks (universal)"); list.add("- " + EnumColor.PURPLE + "Blocks (universal)");
list.add("- " + EnumColor.DARK_RED + "Only used if no other paths available"); list.add("- " + EnumColor.DARK_RED + "Only used if no other paths available");
break;
} }
case 5: case 5:
{ {
@ -129,6 +131,7 @@ public class ItemPartTransmitter extends JItemMultiPart
list.add("- " + EnumColor.PURPLE + "Items (universal)"); list.add("- " + EnumColor.PURPLE + "Items (universal)");
list.add("- " + EnumColor.PURPLE + "Blocks (universal)"); list.add("- " + EnumColor.PURPLE + "Blocks (universal)");
list.add("- " + EnumColor.DARK_RED + "Controllable by redstone"); list.add("- " + EnumColor.DARK_RED + "Controllable by redstone");
break;
} }
} }
} }

View file

@ -278,13 +278,13 @@ public abstract class PartSidedPipe extends TMultiPart implements TSlottedPart,
@Override @Override
public Cuboid6 getBounds() public Cuboid6 getBounds()
{ {
return smallSides[6]; return getTransmitter().getSize() == Size.SMALL ? smallSides[6] : largeSides[6];
} }
@Override @Override
public int getHollowSize() public int getHollowSize()
{ {
return getTransmitter().getSize() == Size.SMALL ? 7 : 9; return getTransmitter().getSize().centerSize+1;
} }
@Override @Override

View file

@ -45,11 +45,11 @@ public enum TransmitterType
SMALL(6), SMALL(6),
LARGE(8); LARGE(8);
public int centreSize; public int centerSize;
private Size(int size) private Size(int size)
{ {
centreSize = size; centerSize = size;
} }
} }