Lots more moved

This commit is contained in:
Sebastian Hartte
2020-07-04 21:03:30 +02:00
parent 5982f094ec
commit 1478e4c378
444 changed files with 4693 additions and 5235 deletions
@@ -303,11 +303,14 @@ public class CableBusBlockEntity extends AEBaseBlockEntity implements AEMultiTil
public void addAllAttributes(World world, BlockPos pos, BlockState state, AttributeList<?> to) {
super.addAllAttributes(world, pos, state, to);
for (AEPartLocation location : AEPartLocation.values()) {
IPart part = this.cb.getPart(location);
if (part != null) {
part.addAllAttributes(to);
}
Direction direction = to.getSearchDirection();
if (direction == null) {
return;
}
AEPartLocation partLocation = AEPartLocation.fromFacing(direction.getOpposite());
IPart part = this.cb.getPart(partLocation);
if (part != null) {
part.addAllAttributes(to);
}
}