Skip to content

Commit

Permalink
fix TileRemoteInterface impl
Browse files Browse the repository at this point in the history
  • Loading branch information
reobf authored Nov 24, 2024
1 parent a202c55 commit 0703ee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/remoteio/common/tile/TileRemoteInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ public double getIdlePowerUsage() {
@Optional.Method(modid = DependencyInfo.ModIds.AE2)
public EnumSet<GridFlags> getFlags() {
IGridBlock gridBlock = (IGridBlock) getTransferImplementation(IGridBlock.class);
return gridBlock != null ? getFlags() : EnumSet.noneOf(GridFlags.class);
return gridBlock != null ? gridBlock.getFlags() : EnumSet.noneOf(GridFlags.class);
}

@Override
Expand Down Expand Up @@ -1127,7 +1127,7 @@ public void gridChanged() {
@Optional.Method(modid = DependencyInfo.ModIds.AE2)
public ItemStack getMachineRepresentation() {
IGridBlock gridBlock = (IGridBlock) getTransferImplementation(IGridBlock.class);
return gridBlock != null ? getMachineRepresentation() : new ItemStack(this.blockType);
return gridBlock != null ? gridBlock.getMachineRepresentation() : new ItemStack(this.blockType);
}

/* END IMPLEMENTATIONS */
Expand Down

0 comments on commit 0703ee1

Please sign in to comment.