Skip to content

Commit 546945d

Browse files
committed
Remove TODOs.
1 parent eedbcfa commit 546945d

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/main/java/dev/technici4n/moderndynamics/extender/MachineExtenderBlock.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,13 @@ public BlockState getStateForPlacement(BlockPlaceContext context) {
7777
@Override
7878
protected void neighborChanged(BlockState state, Level level, BlockPos pos, Block block,
7979
@org.jspecify.annotations.Nullable Orientation orientation, boolean movedByPiston) {
80-
// TODO 26.1: This is likely wrong
8180
if (orientation == null || orientation.getFront() == Direction.UP) {
8281
// Forward update if it's coming from below
8382
if (level.getBlockEntity(pos) instanceof MachineExtenderBlockEntity sideExtender) {
8483
sideExtender.inNeighborUpdate = true;
8584

8685
try {
87-
sideExtender.getLevel().updateNeighborsAtExceptFromFacing(pos, this, Direction.DOWN, orientation); // TODO 26.1: This is likely
88-
// wrong
86+
sideExtender.getLevel().updateNeighborsAtExceptFromFacing(pos, this, Direction.DOWN, orientation);
8987
} finally {
9088
sideExtender.inNeighborUpdate = false;
9189
}

src/main/java/dev/technici4n/moderndynamics/network/energy/EnergyHost.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ public void gatherCapabilities(@Nullable List<EnergyHandler> out) {
119119
for (int i = 0; i < 6; ++i) {
120120
if ((inventoryConnections & (1 << i)) > 0 && (pipeConnections & (1 << i)) == 0) {
121121
Direction dir = Direction.from3DDataValue(i);
122-
EnergyHandler adjacentCap = null; // TODO 26.1: pipe.getLevel().getCapability(Capabilities.Energy.BLOCK,
123-
// pipe.getBlockPos().relative(dir), dir.getOpposite());
122+
EnergyHandler adjacentCap = pipe.getLevel().getCapability(Capabilities.Energy.BLOCK,
123+
pipe.getBlockPos().relative(dir), dir.getOpposite());
124124

125125
if (adjacentCap != null) {
126126
if (out != null) {

src/main/java/dev/technici4n/moderndynamics/network/item/ItemHost.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public void write(ValueOutput output) {
408408
@Override
409409
public void read(ValueInput input) {
410410
super.read(input);
411-
// TODO 26.1: Shouldn't travelingItems be cleared?
411+
travelingItems.clear();
412412
var travelingItemsIn = input.childrenListOrEmpty("travelingItems");
413413
for (var itemIn : travelingItemsIn) {
414414
var item = TravelingItem.read(itemIn);

0 commit comments

Comments
 (0)