Skip to content

Commit

Permalink
Fixed autocrafting being able to load chunks.
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Jul 17, 2020
1 parent 4edda54 commit 812016f
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,17 @@ public TileEntity getConnectedTile() {
return proxy.getFacingTile();
}

@Nullable
@Override
public TileEntity getFacingTile() {
BlockPos facingPos = pos.offset(getDirection());
if (!world.isBlockPresent(facingPos)) {
return null;
}

return world.getTileEntity(facingPos);
}

@Override
public List<ICraftingPattern> getPatterns() {
return patterns;
Expand Down

0 comments on commit 812016f

Please sign in to comment.